/* ============================================ */
/* AUTH PAGES STYLES - OrganDonorLink (ODL)     */
/* ============================================ */

/* ---- AUTH CONTAINER ---- */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: #f0fdf4;
}

.auth-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    background: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* ---- AUTH HEADER ---- */
.auth-header {
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-logo-img {
    height: 40px;
    width: auto;
}

.auth-logo h2 {
    font-size: 20px;
    font-weight: 800;
    color: #064e3b;
    line-height: 1.1;
    margin: 0;
}

.auth-logo span {
    font-size: 10px;
    color: #059669;
    display: block;
    font-weight: 600;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 6px;
}

.auth-header p {
    color: #065f46;
    font-size: 16px;
    font-weight: 500;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 12px;
}

.donor-badge {
    background: #d1fae5;
    color: #047857;
    border: 2px solid #059669;
}

.recipient-badge {
    background: #dbeafe;
    color: #1d4ed8;
    border: 2px solid #3b82f6;
}

/* ---- FORM ELEMENTS ---- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #064e3b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #059669;
    font-size: 14px;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1fae5;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: #f8fdfa;
    transition: all 0.3s ease;
    color: #064e3b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.field-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ---- PASSWORD INPUT ---- */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #059669;
}

/* ---- CHECKBOX GRID ---- */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fdfa;
    border: 2px solid #d1fae5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #064e3b;
}

.checkbox-card:hover {
    border-color: #059669;
    background: #f0fdf4;
}

.checkbox-card input {
    accent-color: #059669;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-card:has(input:checked) {
    border-color: #059669;
    background: #d1fae5;
}

/* ---- FORM OPTIONS ---- */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #065f46;
    cursor: pointer;
}

.checkbox-label input {
    accent-color: #059669;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #047857;
    text-decoration: underline;
}

/* ---- AUTH BUTTONS ---- */
.auth-btn {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

.donor-btn {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.donor-btn:hover {
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.4);
}

.recipient-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.recipient-btn:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* ---- AUTH DIVIDER ---- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1fae5;
}

.auth-divider span {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    padding: 0 8px;
}

/* ---- AUTH LINKS ---- */
.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.auth-links p {
    color: #065f46;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.auth-links .auth-alt {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 2px;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-link:hover {
    transform: translateY(-2px);
}

.recipient-link {
    background: #dbeafe;
    color: #1d4ed8;
    border: 2px solid #3b82f6;
}

.recipient-link:hover {
    background: #bfdbfe;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.donor-link {
    background: #d1fae5;
    color: #047857;
    border: 2px solid #059669;
}

.donor-link:hover {
    background: #a7f3d0;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}

/* ---- AUTH SIDEBAR ---- */
.auth-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #064e3b, #047857);
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
    border-radius: 50%;
}

.auth-sidebar-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 400px;
}

.auth-sidebar-content i {
    font-size: 60px;
    color: #10b981;
    display: block;
    margin-bottom: 20px;
}

.auth-sidebar-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.auth-sidebar-content p {
    font-size: 16px;
    color: #a7f3d0;
    line-height: 1.8;
    margin-bottom: 24px;
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.auth-stats div {
    text-align: center;
}

.auth-stats span {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
}

.auth-stats p {
    font-size: 13px;
    color: #a7f3d0;
    margin: 2px 0 0;
}

/* ---- ALERTS ---- */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert i {
    font-size: 18px;
}

/* ---- REGISTRATION CHOICE ---- */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.choice-card {
    background: #f8fdfa;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    text-decoration: none;
    border: 2px solid #d1fae5;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.choice-card:hover {
    transform: translateY(-4px);
    border-color: #059669;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.choice-card .choice-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.choice-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 4px;
}

.choice-card p {
    color: #065f46;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.choice-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.choice-card:hover .choice-btn {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        padding: 30px 40px;
        max-width: 100%;
    }
    
    .auth-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-box {
        padding: 24px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .choice-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .auth-stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
    
    .auth-stats span {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 16px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .auth-btn {
        font-size: 14px;
        padding: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 14px;
    }
}