/*
 |--------------------------------------------------------------------------
 | Pages d'authentification
 |--------------------------------------------------------------------------
 */

.auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 6rem;
}

#auth-main-card.role-creator {
    background: linear-gradient(135deg, #ffffff 0%, #fffaff 100%);
    border-color: rgba(255, 95, 158, 0.1);
}

#auth-main-card.role-donor {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    border-color: rgba(90, 96, 232, 0.1);
}

.auth-header {
    text-align: center;
    display: grid;
    gap: 0.75rem;
}

.auth-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--heading-color);
}

.auth-header p {
    color: var(--text-color-muted);
}

.auth-header .site-logo img {
    height: 145px;
    margin-bottom: 1rem;
}

.auth-form {
    display: grid;
    gap: 1.1rem;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-muted);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding-left: 2.8rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color-muted);
    cursor: pointer;
}

.password-strength {
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.strength-bar.weak {
    background: var(--danger-color);
}

.strength-bar.medium {
    background: var(--warning-color);
}

.strength-bar.strong {
    background: var(--success-color);
}

.auth-footer {
    text-align: center;
    color: var(--text-color-muted);
    font-size: 0.95rem;
}

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

/* Segmented Role Toggle */
.role-toggle-container {
    display: flex;
    padding: 0.35rem;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    position: relative;
    gap: 0.25rem;
}

.role-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.role-toggle-btn i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.role-toggle-btn.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.role-toggle-btn.active i {
    opacity: 1;
    color: var(--primary-color);
}

.role-toggle-btn:not(.active):hover {
    color: #475569;
    background: rgba(255, 255, 255, 0.4);
}