:root {
    --primary: #0F1F68;
    --accent: #FF620F;
    --accent-hover: #FF7A2A;
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --border: #E2E8F0;
    --shadow: 0 20px 60px rgba(15, 31, 104, 0.12);
    --shadow-hover: 0 30px 80px rgba(15, 31, 104, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0F1F68 0%, #1E3A8A 50%, #1E40AF 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.auth-container {
    max-width: 1150px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(255, 98, 15, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 98, 15, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 98, 15, 0.5);
    }
}

.logo h2 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF, #E2E8F0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* Two Column Layout */
.auth-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex: 1;
    align-items: start;
    animation: fadeInUp 0.8s ease;
    max-width: 1100px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Column Styling */
.auth-column {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 520px;
}

.auth-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-column:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.auth-column:hover::before {
    opacity: 1;
}

.login-column {
    border-top: 4px solid var(--primary);
}

.register-column {
    border-top: 4px solid var(--accent);
}

/* Column Header */
.column-header {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--bg-primary);
}

.header-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--bg-primary), #E2E8F0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(15, 31, 104, 0.1);
    transition: all 0.3s ease;
}

.auth-column:hover .header-icon {
    transform: scale(1.1) rotate(5deg);
}

.column-header h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.column-header p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Form Elements */
.auth-form {
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-primary);
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(15, 31, 104, 0.08);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Form Row */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-label input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked+.checkmark::after {
    content: '✔';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-link,
.link-inline,
.link-footer {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.forgot-link:hover,
.link-inline:hover,
.link-footer:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

.forgot-link {
    display: block;
    margin-bottom: 14px;
    text-align: right;
}

/* Buttons */
.btn-primary {
    width: 100%;
    border: none;
    border-radius: var(--radius);
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 98, 15, 0.3);
    font-family: inherit;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 98, 15, 0.4);
}

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

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-loader {
    margin-left: 8px;
    animation: spin 1s linear infinite;
}

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

/* Consent Box */
.consent-box {
    margin-bottom: 14px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.consent-box .checkbox-label {
    font-size: 11px;
}

/* Status Messages */
.recovery-status {
    margin-top: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 13px;
}

.status-success,
.status-error {
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Column Features */
.column-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    border-top: 2px solid var(--bg-primary);
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 11px;
    transition: all 0.2s ease;
}

.feature:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.feature-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--bg-primary), #E2E8F0);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.feature:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
    background: linear-gradient(135deg, var(--primary), #1E3A8A);
}

/* Footer */
.auth-footer {
    margin-top: 20px;
    text-align: center;
    padding: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-footer p {
    margin: 0 0 8px;
    line-height: 1.6;
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .auth-container {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
    }

    .auth-column {
        padding: 30px 24px;
    }

    .column-header h2 {
        font-size: 24px;
    }

    .header-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

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

    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .header-subtitle {
        font-size: 16px;
    }

    .auth-column {
        padding: 24px 20px;
    }

    .column-header h2 {
        font-size: 22px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .forgot-link {
        text-align: left;
    }
}