/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

:root {
    --teal-primary: #0d5e52;
    --teal-secondary: #116e5f;
    --teal-dark: #0a4a42;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Left Panel - Features */
.left-panel {
    flex: 0 0 50%;
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-secondary) 100%);
    color: var(--white);
    padding: 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Animated shiny line effect */
.left-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent 30%,
            rgba(255, 255, 255, 0.08) 45%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.08) 55%,
            transparent 90%);
    pointer-events: none;
    animation: shinyLineMove 10s linear infinite;
}

.left-panel .content {
    position: relative;
    z-index: 1;
    max-width: 540px;
}

.left-panel h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.left-panel .subtitle {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 28px;
}

/* Feature Badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.badge svg {
    width: 16px;
    height: 16px;
}

/* Feature Cards */
.features {
    display: grid;
    gap: 16px;
}

.feature-card {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.5;
}

/* Right Panel - Form */
.right-panel {
    flex: 0 0 50%;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.form-container {
    width: 100%;
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.form-container h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 32px;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    font-weight: bold;
    padding: 12px 14px;
    font-size: 0.9375rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-900);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(13, 94, 82, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* Phone Input */
.phone-input {
    display: flex;
    gap: 12px;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: var(--gray-50);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.country-code .flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

.phone-input input {
    flex: 1;
}

/* Select Dropdown */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    padding: 10px;
}

/* Password Input */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font-size: 0.9375rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    transition: all 0.2s ease;
}

.password-input:focus-within {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(13, 94, 82, 0.1);
}

.password-input input {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    border: none;
    outline: none;
    padding: 0;
    padding-right: 35px;
    font-size: 0.9375rem;
    background: transparent;
    color: var(--gray-900);
    font-family: inherit;
}

.password-input input::placeholder {
    color: var(--gray-400);
}

.toggle-password {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.toggle-password:hover {
    color: var(--gray-600);
}

/* Gender Options */
.gender-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 12px;
    display: block;
}

.gender-options {
    display: flex;
    gap: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--gray-700);
    cursor: pointer;
    user-select: none;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked+.radio-custom {
    border-color: var(--teal-primary);
}

.radio-label input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--teal-primary);
    border-radius: 50%;
}

.radio-label svg {
    width: 16px;
    height: 16px;
    color: var(--gray-600);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: var(--teal-primary);
    border-color: var(--teal-primary);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--teal-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--teal-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 28px;
    box-shadow: 0 4px 12px rgba(13, 94, 82, 0.25);
}

.submit-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 94, 82, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

/* Login Link */
.login-link {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-top: 24px;
}

.login-link a {
    color: var(--teal-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-link a:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--teal-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-bottom: 8px;
}

.forgot-password:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    /* Mobile: Show form first, then info */
    .left-panel {
        order: 2;
    }

    .right-panel {
        order: 1;
    }

    .left-panel,
    .right-panel {
        flex: 1 1 auto;
        width: 100%;
    }

    .left-panel {
        padding: 40px 30px;
        min-height: auto;
    }

    .left-panel h1 {
        font-size: 2rem;
    }

    .left-panel .content {
        max-width: 100%;
    }

    .right-panel {
        padding: 40px 30px;
    }

    .form-container {
        padding: 36px 28px;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .left-panel {
        padding: 30px 20px;
    }

    .left-panel h1 {
        font-size: 1.75rem;
    }

    .badges {
        gap: 8px;
    }

    .badge {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }

    .feature-card {
        padding: 16px;
    }

    .right-panel {
        padding: 30px 20px;
    }

    .form-container {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }

    .gender-options {
        flex-direction: column;
        gap: 12px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shiny line animation - subtle diagonal sweep */
@keyframes shinyLineMove {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }

    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

.form-container {
    animation: fadeIn 0.6s ease-out;
}

.feature-card {
    animation: fadeIn 0.6s ease-out;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}
/* Button Loading States */
.submit-btn {
    position: relative;
}

.submit-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled:hover {
    background: var(--gray-400);
    transform: none;
    box-shadow: none;
}

.btn-content,
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* CSS Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
