﻿:root {
    --primary: #00b3c9;
    --primary-dark: #0090a3;
    --secondary: #00e0d5;
    --text-dark: #0a0e27;
    --text-light: #6c7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f7f9fb;
    --input-border: #e6e9ef;
    --input-focus: #00b3c9;
    --shadow: 0 4px 20px rgba(0, 179, 201, 0.15);
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
}

.register-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== LEFT PANEL - BENEFITS ===== */
.benefits-panel {
    flex: 1;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f7fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    border-right: 1px solid var(--input-border);
}

.benefits-content {
    max-width: 420px;
}

.benefits-logo .logo-image {
    height: 36px;
    margin-bottom: 40px;
}

.benefits-panel h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.benefits-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.6;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.benefit-item strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.benefit-item span {
    font-size: 13px;
    color: var(--text-light);
}

.benefits-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 500;
}

    .benefits-footer .material-icons {
        font-size: 18px;
        color: var(--primary);
    }

/* ===== RIGHT PANEL - FORM ===== */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--bg-white);
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.mobile-logo {
    display: none;
    justify-content: center;
    margin-bottom: 24px;
}

    .mobile-logo .logo-image {
        height: 36px;
    }

.form-container h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 28px;
    text-align: center;
}

/* Alert */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(0, 179, 201, 0.1);
    border: 1px solid rgba(0, 179, 201, 0.3);
    color: var(--primary-dark);
}

    .alert .material-icons {
        font-size: 20px;
    }

/* Form */
.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.form-control {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.2s;
}

    .form-control:focus {
        border-color: var(--input-focus);
        box-shadow: 0 0 0 4px rgba(0, 179, 201, 0.15);
        outline: none;
    }

        .form-control:focus ~ .input-icon,
        .input-wrapper:focus-within .input-icon {
            color: var(--primary);
        }

    .form-control::placeholder {
        color: var(--text-muted);
    }

/* ===== PASSWORD TOGGLE ===== */
.password-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .password-toggle:hover {
        color: var(--primary);
        background: rgba(0, 179, 201, 0.1);
    }

    .password-toggle .material-icons {
        font-size: 20px;
    }

/* ===== BUTTON ===== */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #00b3c9 0%, #00e0d5 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0, 179, 201, 0.3);
    margin-top: 8px;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0090a3 0%, #00b3c9 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 179, 201, 0.4);
    }

    .btn-primary:disabled {
        background: var(--text-muted);
        transform: none;
        box-shadow: none;
        cursor: not-allowed;
    }

.btn-arrow {
    font-size: 20px;
    transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Spinner */
.spinner-border {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-right-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.d-none {
    display: none !important;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--input-border);
    }

    .divider span {
        padding: 0 16px;
    }

/* Login Link */
.login-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

    .login-link a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
    }

        .login-link a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

.text-danger {
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .benefits-panel {
        display: none;
    }

    .form-panel {
        padding: 32px 24px;
    }

    .mobile-logo {
        display: flex;
    }
}

@media (max-width: 480px) {
    .name-fields {
        grid-template-columns: 1fr;
    }

    .form-container h2 {
        font-size: 22px;
    }
}
