/* =========================
   Auth Pages Styles
   ========================= */

/* Hide navbar and footer on auth pages */
body:has(.auth-section) .navbar,
body:has(.auth-section) .footer {
    display: none !important;
}

.auth-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        var(--dark);
}

/* Login Card */
.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.auth-logo img {
    width: 32px;
    height: 32px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--gray-400);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-300);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    stroke: var(--gray-500);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    font-size: 15px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

.input-wrapper input::placeholder {
    color: var(--gray-500);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Footer */
.auth-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.auth-footer p {
    font-size: 13px;
    color: var(--gray-500);
}

.auth-footer code {
    background: rgba(99, 102, 241, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-light);
}

/* =========================
   Role Selection
   ========================= */
.role-container {
    width: 100%;
    max-width: 900px;
}

.role-header {
    text-align: center;
    margin-bottom: 40px;
}

.role-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.role-header p {
    font-size: 16px;
    color: var(--gray-400);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.role-grid form {
    display: flex;
}

@media (max-width: 768px) {
    .role-grid {
        grid-template-columns: 1fr;
    }
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    flex: 1;
}

.role-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.role-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.role-card:hover .role-icon {
    background: rgba(99, 102, 241, 0.25);
}

.role-icon svg {
    stroke: var(--primary-light);
}

.role-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.role-card p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.5;
}

.role-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.role-arrow svg {
    stroke: var(--primary-light);
}

.role-card:hover .role-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Disabled role cards */
.role-card.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.role-card.disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.5);
    box-shadow: none;
}

.role-card.disabled .role-icon {
    background: rgba(100, 116, 139, 0.15);
}

.role-card.disabled:hover .role-icon {
    background: rgba(100, 116, 139, 0.15);
}

.role-card.disabled .role-icon svg {
    stroke: var(--gray-500);
}

.coming-soon-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.coming-soon-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.role-footer {
    margin-top: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--gray-500);
    font-size: 14px;
}

.role-footer strong {
    color: var(--white);
}

.logout-link {
    color: var(--primary-light);
}

.logout-link:hover {
    color: var(--white);
    text-decoration: underline;
}
