/* === Auth Pages Styling === */
.auth-page-body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #dc3545 0%, #000000 50%, #ffc107 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.auth-page-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="particles" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="0.5" fill="white" opacity="0.1"/><circle cx="18" cy="18" r="0.3" fill="white" opacity="0.1"/><circle cx="10" cy="15" r="0.4" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    position: relative;
    animation: slideInUp 0.8s ease-out;
}

.register-card {
    max-width: 900px;
}

.auth-header {
    background: linear-gradient(135deg, #dc3545 0%, #000000 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="headerPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23headerPattern)"/></svg>');
}

.logo-container {
    display: inline-block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 193, 7, 0.4);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo-container:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: rgba(255, 193, 7, 0.8);
}

.auth-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.auth-subtitle {
    opacity: 0.9;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.auth-body {
    padding: 2.5rem;
}

.back-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-2px) scale(1.1);
}

/* Form Styling */
.auth-page .form-floating {
    margin-bottom: 1.5rem;
}

.auth-page .form-control,
.auth-page .form-select {
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.auth-page .form-control:focus,
.auth-page .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background: white;
}

.auth-page .form-label {
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.auth-page .form-label i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Button Styling */
.btn-auth {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}

.auth-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* Alert Styling */
.auth-page .alert {
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.auth-page .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.auth-page .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.social-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.social-divider span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Register page specific styles */
.form-section {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #dc3545;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.form-section-title i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.auth-page .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.auth-page .form-check-label {
    font-size: 0.9rem;
}

.auth-page .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-page .form-check {
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.auth-page .form-check:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #dc3545;
}

.auth-page .form-check-input:checked + .form-check-label {
    color: #dc3545;
    font-weight: 600;
}

/* Password toggle styling */
.csp-pos-relative {
    position: relative;
}

.csp-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.csp-password-toggle:hover {
    color: #dc3545;
    transform: translateY(-50%) scale(1.1);
}

/* Hidden elements */
.csp-hidden {
    display: none !important;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
        border-radius: 1.5rem;
    }
    
    .auth-header {
        padding: 1.5rem;
    }
    
    .auth-body {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .radio-group {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem 0.5rem;
    }
}
