/* ===== Users Authentication CSS ===== */
:root {
    --primary: #2A3B4C;
    --primary-light: #3E5A6F;
    --secondary: #6B5B95;
    --accent: #C44569;
    --accent-light: #E6A4B4;
    --success: #2E7D5E;
    --warning: #E6B800;
    --dark: #1A2634;
    --light: #F5F7FA;
    --gradient-1: linear-gradient(135deg, #2A3B4C, #3E5A6F);
    --gradient-2: linear-gradient(135deg, #6B5B95, #C44569);
    --gradient-3: linear-gradient(135deg, #2E7D5E, #6B5B95);
    --gradient-4: linear-gradient(135deg, #E6A4B4, #C44569);
}

/* ===== Auth Wrapper ===== */
.auth-wrapper {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1A2634 0%, #2A3B4C 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 0;
}

/* Background Shapes */
.auth-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.auth-bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(107, 91, 149, 0.2) 0%, transparent 70%);
    animation: floatShape1 20s infinite;
}

.auth-bg-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(198, 69, 105, 0.15) 0%, transparent 70%);
    animation: floatShape2 18s infinite reverse;
}

.auth-bg-shape.shape-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 15%;
    background: radial-gradient(circle, rgba(230, 164, 180, 0.1) 0%, transparent 70%);
    animation: floatShape3 15s infinite;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 15px) rotate(180deg); }
}

/* Brand */
.auth-brand {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.auth-brand span {
    background: var(--gradient-4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-brand:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-card-header h3 {
    color: var(--primary);
}

.auth-card-body {
    padding: 2rem;
}

.auth-card-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Auth Link */
.auth-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: var(--accent);
    transform: translateX(5px);
    display: inline-block;
}

/* ===== Role Cards (Horizontal) ===== */
.role-cards {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.role-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.role-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(107, 91, 149, 0.1);
}

.role-card.selected {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.05), rgba(198, 69, 105, 0.05));
}

.role-card.selected .role-check {
    opacity: 1;
}

.role-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.1), rgba(198, 69, 105, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.role-card:hover .role-icon {
    background: var(--gradient-2);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.role-info {
    flex: 1;
}

.role-info h5 {
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.role-info p {
    margin-bottom: 0;
}

.role-check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--success);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== Role Cards (Vertical) ===== */
.role-cards-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-card-vertical {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    position: relative;
}

.role-card-vertical:hover {
    border-color: var(--secondary);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(107, 91, 149, 0.1);
}

.role-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.role-icon.student {
    background: linear-gradient(135deg, rgba(46, 125, 94, 0.1), rgba(46, 125, 94, 0.2));
    color: var(--success);
}

.role-icon.trainer {
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.1), rgba(107, 91, 149, 0.2));
    color: var(--secondary);
}

.role-icon.institute {
    background: linear-gradient(135deg, rgba(198, 69, 105, 0.1), rgba(198, 69, 105, 0.2));
    color: var(--accent);
}

.role-card-vertical:hover .role-icon.student {
    background: linear-gradient(135deg, #2E7D5E, #2E7D5E);
    color: white;
    transform: scale(1.1);
}

.role-card-vertical:hover .role-icon.trainer {
    background: linear-gradient(135deg, #6B5B95, #6B5B95);
    color: white;
    transform: scale(1.1);
}

.role-card-vertical:hover .role-icon.institute {
    background: linear-gradient(135deg, #C44569, #C44569);
    color: white;
    transform: scale(1.1);
}

.role-content {
    flex: 1;
}

.role-content h5 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.role-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--gradient-4);
    color: white;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.role-arrow {
    color: var(--secondary);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

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

/* ===== Methods Container ===== */
.methods-container {
    transition: all 0.3s ease;
}

.methods-container.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== Form Floating Labels ===== */
.form-floating {
    position: relative;
}

.form-floating > .form-control {
    height: calc(3.8rem + 2px);
    padding: 1.2rem 1rem 0.4rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-floating > .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(107, 91, 149, 0.1);
}

.form-floating > .form-control:read-only {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.form-floating > label {
    padding: 1rem 1rem;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.8rem) translateX(0.15rem);
    color: var(--secondary);
    font-weight: 600;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--secondary);
}

/* ===== Buttons ===== */
.btn-login {
    background: var(--gradient-2);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(198, 69, 105, 0.3);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* Google Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    color: #495057;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(107, 91, 149, 0.1);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* ===== Divider ===== */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.divider-text {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===== Forgot Password Link ===== */
.forgot-password-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--accent);
}

/* ===== Loading States ===== */
.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .btn-loader {
    display: inline-block !important;
}

/* ===== Alert Styles ===== */
.alert {
    border: none;
    border-left: 4px solid;
    border-radius: 15px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 125, 94, 0.1), rgba(46, 125, 94, 0.05));
    border-left-color: var(--success);
}

.alert-danger,
.alert-error {
    background: linear-gradient(135deg, rgba(198, 69, 105, 0.1), rgba(198, 69, 105, 0.05));
    border-left-color: var(--accent);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(230, 184, 0, 0.1), rgba(230, 184, 0, 0.05));
    border-left-color: var(--warning);
}

.alert-info {
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.1), rgba(107, 91, 149, 0.05));
    border-left-color: var(--secondary);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .auth-card-body {
        padding: 1.5rem;
    }
    
    .role-cards {
        flex-direction: column;
    }
    
    .role-card-vertical {
        padding: 1rem;
    }
    
    .role-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .auth-brand {
        font-size: 1.5rem;
    }
    
    .auth-card-header h3 {
        font-size: 1.5rem;
    }
    
    .btn-google {
        padding: 0.8rem;
    }
}

/* ===== Toast Notification ===== */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* ===== HIDE SCROLLBAR ===== */
html, body {
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}