/* Custom Full-Screen Backgrounds - Reusable CSS for Authentication Pages */

/* Hide navigation elements for full-screen experience */
header {
    display: none;
}

main {
    padding: 0;
}

footer {
    display: none;
}

/* Base full-screen hero container */
.fullscreen-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

/* Animated background effects - base */
.fullscreen-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Background overlay (optional) */
.fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Content positioning */
.fullscreen-content {
    position: relative;
    z-index: 3;
}

/* Main card styling */
.fullscreen-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    overflow: hidden;
}

.fullscreen-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
}

/* Circular icon/logo container */
.fullscreen-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fullscreen-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Header section for registration page */
.fullscreen-header {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    position: relative;
    overflow: hidden;
}

.fullscreen-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: rotate 10s linear infinite;
}

/* Logo variant for registration */
.fullscreen-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse-gentle 3s ease-in-out infinite;
}

/* Back link styling */
.fullscreen-back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.4s ease;
    font-weight: 500;
}

.fullscreen-back-link:hover {
    color: #fff3a0;
    transform: translateX(-8px);
    text-shadow: 0 2px 8px rgba(255, 243, 160, 0.3);
}

/* Welcome badge */
.fullscreen-welcome-badge {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(67, 233, 123, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Theme variants - Registration (Purple/Pink) */
.fullscreen-hero--register {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 25%, #4facfe 75%, #00f2fe 100%);
}

.fullscreen-hero--register::before {
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 10% 60%, rgba(255, 255, 255, 0.20) 0%, transparent 50%),
        radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
    background-size: 300px 300px, 250px 250px, 200px 200px, 180px 180px, 220px 220px;
    background-position: 0 0, 150px 100px, 300px 200px, 50px 150px, 200px 50px;
    animation: wave 14s ease-in-out infinite;
}

/* Theme variants - Login (Blue) */
.fullscreen-hero--login {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #667eea 75%, #764ba2 100%);
}

.fullscreen-hero--login::before {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.28) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.20) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 40%);
    background-size: 250px 250px, 350px 350px, 180px 180px, 220px 220px, 160px 160px;
    background-position: 0 0, 120px 120px, 60px 60px, 200px 200px, 300px 80px;
    animation: float 16s ease-in-out infinite;
}

.fullscreen-overlay--login {
    background: rgba(26, 35, 126, 0.55);
}

.fullscreen-icon--login {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.fullscreen-icon--login:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

/* Theme variants - Reset Password (Green/Teal) */
.fullscreen-hero--reset {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 25%, #4facfe 75%, #00f2fe 100%);
}

/* Theme variants - Forgot Password (Purple/Pink) */
.fullscreen-hero--forgot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 75%, #fa709a 100%);
}

.fullscreen-hero--reset::before {
    background-image: 
        radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 40% 10%, rgba(255, 255, 255, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 60% 90%, rgba(255, 255, 255, 0.22) 0%, transparent 50%);
    background-size: 300px 300px, 250px 250px, 180px 180px, 220px 220px;
    background-position: 0 0, 120px 120px, 60px 60px, 180px 180px;
    animation: floatSecurity 20s ease-in-out infinite;
}

.fullscreen-hero--forgot::before {
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 15% 70%, rgba(255, 255, 255, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 40%);
    background-size: 280px 280px, 320px 320px, 200px 200px, 240px 240px;
    background-position: 0 0, 150px 150px, 80px 80px, 250px 100px;
    animation: floatGentle 18s ease-in-out infinite;
}

.fullscreen-overlay--reset {
    background: rgba(67, 233, 123, 0.35);
}

.fullscreen-overlay--forgot {
    background: rgba(102, 126, 234, 0.4);
}

.fullscreen-icon--reset {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 10px 30px rgba(67, 233, 123, 0.4);
}

.fullscreen-icon--reset:hover {
    box-shadow: 0 15px 40px rgba(67, 233, 123, 0.5);
}

.fullscreen-icon--reset-success {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4) !important;
}

.fullscreen-icon--reset-success:hover {
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.5) !important;
}

.fullscreen-icon--forgot {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #fa709a 100%);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.fullscreen-icon--forgot:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 35px rgba(240, 147, 251, 0.5);
}

.fullscreen-icon--forgot-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4) !important;
}

.fullscreen-icon--forgot-success:hover {
    box-shadow: 0 12px 35px rgba(67, 233, 123, 0.5) !important;
}

/* Form styling common to all pages */
.form-control {
    transition: all 0.3s ease !important;
    padding: 0.75rem 1rem !important;
}

.form-control:focus {
    transform: translateY(-1px);
}

.form-outline .form-control {
    border: none !important;
    box-shadow: none !important;
}

.form-outline .form-control:focus {
    border: none !important;
    box-shadow: none !important;
}

.form-check-input:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
    animation: bounce 0.6s ease !important;
}

.btn-primary:disabled {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.alert {
    border-radius: 15px !important;
    border: none !important;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    animation: slideInDown 0.5s ease !important;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    animation: shake 0.5s ease !important;
}

.rate-limited-notice {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
}

.form-label {
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 0.5rem !important;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

.gender-option {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    margin: 0.25rem;
}

.gender-option:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.welcome-message {
    animation: fadeInUp 0.8s ease !important;
}

.password-strength {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.strength-weak { color: #dc3545; }
.strength-fair { color: #fd7e14; }
.strength-good { color: #198754; }
.strength-strong { color: #0d6efd; }

.success-message {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #0c5460;
}

.password-requirements {
    font-size: 0.8rem;
    color: #6c757d;
}

.requirement-met {
    color: #198754 !important;
}

/* Animations */
@keyframes wave {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateX(20px) translateY(-30px) rotate(-4deg); 
    }
    50% { 
        transform: translateX(-15px) translateY(-40px) rotate(2deg); 
    }
    75% { 
        transform: translateX(25px) translateY(-20px) rotate(-3deg); 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-45px) rotate(5deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(-3deg); 
    }
    75% { 
        transform: translateY(-35px) rotate(2deg); 
    }
}

@keyframes floatSecurity {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-40px) rotate(3deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(-2deg); 
    }
    75% { 
        transform: translateY(-30px) rotate(1deg); 
    }
}

@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-badge {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 6px 20px rgba(67, 233, 123, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 8px 25px rgba(67, 233, 123, 0.6);
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(-2px); }
    40%, 80% { transform: translateY(-4px); }
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatGentle {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-30px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(-1deg); 
    }
    75% { 
        transform: translateY(-25px) rotate(1deg); 
    }
}