:root {
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-100: #F3F4F6;
    --white: #FFF;
    --black: #000;
    --blue-600: #2563EB;
    --placeholder: #ADAEBC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, Roboto, Helvetica, sans-serif;
    background-color: var(--white);
    color: var(--gray-900);
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Property Image */
.left-panel {
    flex: 1;
    background: #000;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Right Side - Registration Form */
.right-panel {
    width: 100%;
    max-width: 512px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px;
    background: var(--white);
    overflow-y: auto;
}

@media (max-width: 968px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .right-panel {
        padding: 20px 16px;
    }
}

/* Logo */
.logo-container {
    margin-bottom: 32px;
    margin-top: 16px;
    text-align: center;
}

.logo {
    display: inline-block;
    padding: 10px 22px;
    background: var(--black);
    color: white;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.15em;
}

/* Registration Form Container */
.registration-card {
    width: 100%;
    max-width: 448px;
    background: var(--white);
    border-radius: 16px;
    padding: 40px 33px;
}

@media (max-width: 480px) {
    .registration-card {
        padding: 32px 20px;
    }
}

.registration-header {
    margin-bottom: 32px;
    text-align: center;
}

.registration-title {
    color: var(--gray-900);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.registration-subtitle {
    color: var(--gray-600);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .registration-title {
        font-size: 24px;
    }

    .registration-subtitle {
        font-size: 14px;
    }
}

/* Form */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-900);
    font-size: 16px;
    font-family: 'Inter', -apple-system, Roboto, Helvetica, sans-serif;
    transition: all 0.2s;
    line-height: 1.5;
}

.form-input.with-icon {
    padding-left: 40px;
}

.form-input.with-toggle {
    padding-right: 40px;
}

.form-input::placeholder {
    color: var(--placeholder);
}

.form-input:focus {
    outline: none;
    border-color: var(--gray-900);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.password-toggle:hover {
    opacity: 0.7;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 2px;
    border: 0.5px solid var(--black);
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-label {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}

.checkbox-label a {
    color: var(--blue-600);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Create Account Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', -apple-system, Roboto, Helvetica, sans-serif;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

/* Sign In Link */
.signin-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.signin-text {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 400;
}

.signin-link {
    color: var(--blue-600);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.signin-link:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error .form-input {
    border-color: #EF4444;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-card {
    animation: fadeIn 0.6s ease-out;
}

.logo-container {
    animation: fadeIn 0.4s ease-out;
}

/* Loading state */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}