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

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--gradient-dark);
}

.auth-container {
    width: 100%;
    max-width: 1000px;
}

.auth-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.auth-sidebar {
    background: linear-gradient(135deg, #1a2332, #0b1727);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent 65%);
    pointer-events: none;
}

.auth-sidebar-content {
    position: relative;
    z-index: 2;
}

.auth-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 20px;
}

.auth-sidebar p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.auth-sidebar-desc {
    font-size: 0.85rem !important;
    line-height: 1.6;
}

.auth-sidebar-footer {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    text-align: center;
}

.auth-sidebar-footer p {
    margin-bottom: 16px;
}

.btn-outline-light {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

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

.auth-form-content {
    max-width: 400px;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.auth-form-content .form-group {
    margin-bottom: 16px;
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0 0 20px;
}

.auth-select {
    appearance: auto;
    cursor: pointer;
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.8);
    min-height: 46px;
    padding: 10px 12px;
    line-height: 1.4;
}

.auth-select option {
    color: #1e293b;
    background: #fff;
    padding: 6px 8px;
}

.auth-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

.input-group {
    display: flex;
    position: relative;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-toggle-password {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-left: none;
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-toggle-password:hover {
    background: rgba(34, 197, 94, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-checkbox label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.forgot-link {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 16px;
    transition: var(--transition);
}

.btn-google:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary-color);
}

/* Role Selector */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.role-option {
    cursor: pointer;
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
}

.role-card i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: var(--transition);
}

.role-card span {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.role-card small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: var(--primary-color);
    background: rgba(34, 197, 94, 0.1);
}

.role-option input[type="radio"]:checked + .role-card i {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
    
    .auth-sidebar {
        display: none;
    }
    
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .role-selector {
        grid-template-columns: 1fr;
    }
}