/* ================================================
   Custom Login Page Styling - Corporate Design
   ================================================ */

/* Modern Corporate Background - Apply to all authentication pages */
body.login_admin,
body.authentication.forgot-password,
body.authentication.reset-password,
body.authentication.set-password,
body.authentication.two-factor-authentication-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient overlay */
body.login_admin::before,
body.authentication.forgot-password::before,
body.authentication.reset-password::before,
body.authentication.set-password::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(84, 107, 182, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    z-index: 1;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Geometric pattern overlay */
body.login_admin::after,
body.authentication.forgot-password::after,
body.authentication.reset-password::after,
body.authentication.set-password::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 70px);
    z-index: 1;
}

/* Floating decoration circles */
body.login_admin .decoration-circle,
body.authentication.forgot-password .decoration-circle,
body.authentication.reset-password .decoration-circle,
body.authentication.set-password .decoration-circle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

body.login_admin .decoration-circle-1,
body.authentication.forgot-password .decoration-circle-1,
body.authentication.reset-password .decoration-circle-1,
body.authentication.set-password .decoration-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

body.login_admin .decoration-circle-2,
body.authentication.forgot-password .decoration-circle-2,
body.authentication.reset-password .decoration-circle-2,
body.authentication.set-password .decoration-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

body.login_admin .decoration-circle-3,
body.authentication.forgot-password .decoration-circle-3,
body.authentication.reset-password .decoration-circle-3,
body.authentication.set-password .decoration-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-30px) translateX(20px);
    }
    66% {
        transform: translateY(20px) translateX(-20px);
    }
}

/* Enhanced authentication form wrapper */
.authentication-form-wrapper {
    z-index: 20 !important;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Logo Enhancement */
.company-logo {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.company-logo img {
    max-height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Enhanced Login Form Card */
body.login_admin .tw-bg-white,
body.authentication.forgot-password .tw-bg-white,
body.authentication.reset-password .tw-bg-white,
body.authentication.set-password .tw-bg-white {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.login_admin .tw-bg-white:hover,
body.authentication.forgot-password .tw-bg-white:hover,
body.authentication.reset-password .tw-bg-white:hover,
body.authentication.set-password .tw-bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset !important;
}

/* Heading Styles */
body.login_admin .tw-text-neutral-800,
body.authentication.forgot-password .tw-text-neutral-800,
body.authentication.reset-password .tw-text-neutral-800,
body.authentication.set-password .tw-text-neutral-800 {
    color: #1e293b !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.login_admin .tw-text-neutral-600,
body.authentication.forgot-password .tw-text-neutral-600,
body.authentication.reset-password .tw-text-neutral-600,
body.authentication.set-password .tw-text-neutral-600 {
    color: #64748b !important;
    font-size: 15px;
}

/* Form Input Enhancements */
body.login_admin .form-control,
body.authentication.forgot-password .form-control,
body.authentication.reset-password .form-control,
body.authentication.set-password .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

body.login_admin .form-control:focus,
body.authentication.forgot-password .form-control:focus,
body.authentication.reset-password .form-control:focus,
body.authentication.set-password .form-control:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

body.login_admin .form-control:hover,
body.authentication.forgot-password .form-control:hover,
body.authentication.reset-password .form-control:hover,
body.authentication.set-password .form-control:hover {
    border-color: #cbd5e1;
}

/* Label Styling */
body.login_admin .control-label,
body.authentication.forgot-password .control-label,
body.authentication.reset-password .control-label,
body.authentication.set-password .control-label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* Enhanced Button */
body.login_admin .btn-primary,
body.authentication.forgot-password .btn-primary,
body.authentication.reset-password .btn-primary,
body.authentication.set-password .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

body.login_admin .btn-primary::before,
body.authentication.forgot-password .btn-primary::before,
body.authentication.reset-password .btn-primary::before,
body.authentication.set-password .btn-primary::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 ease;
}

body.login_admin .btn-primary:hover::before,
body.authentication.forgot-password .btn-primary:hover::before,
body.authentication.reset-password .btn-primary:hover::before,
body.authentication.set-password .btn-primary:hover::before {
    left: 100%;
}

body.login_admin .btn-primary:hover,
body.authentication.forgot-password .btn-primary:hover,
body.authentication.reset-password .btn-primary:hover,
body.authentication.set-password .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

body.login_admin .btn-primary:active,
body.authentication.forgot-password .btn-primary:active,
body.authentication.reset-password .btn-primary:active,
body.authentication.set-password .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Checkbox Styling */
body.login_admin .checkbox input[type="checkbox"],
body.authentication.forgot-password .checkbox input[type="checkbox"],
body.authentication.reset-password .checkbox input[type="checkbox"],
body.authentication.set-password .checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.login_admin .checkbox input[type="checkbox"]:checked,
body.authentication.forgot-password .checkbox input[type="checkbox"]:checked,
body.authentication.reset-password .checkbox input[type="checkbox"]:checked,
body.authentication.set-password .checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

body.login_admin .checkbox label,
body.authentication.forgot-password .checkbox label,
body.authentication.reset-password .checkbox label,
body.authentication.set-password .checkbox label {
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

/* Links */
body.login_admin a.text-muted,
body.authentication.forgot-password a.text-muted,
body.authentication.reset-password a.text-muted,
body.authentication.set-password a.text-muted {
    color: #667eea !important;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

body.login_admin a.text-muted:hover,
body.authentication.forgot-password a.text-muted:hover,
body.authentication.reset-password a.text-muted:hover,
body.authentication.set-password a.text-muted:hover {
    color: #764ba2 !important;
    text-decoration: underline;
}

/* Alert Messages */
body.login_admin .alert,
body.authentication.forgot-password .alert,
body.authentication.reset-password .alert,
body.authentication.set-password .alert {
    border-radius: 12px;
    border: none;
    padding: 14px 18px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.login_admin .alert-danger,
body.authentication.forgot-password .alert-danger,
body.authentication.reset-password .alert-danger,
body.authentication.set-password .alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

body.login_admin .alert-success,
body.authentication.forgot-password .alert-success,
body.authentication.reset-password .alert-success,
body.authentication.set-password .alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

/* Form Group Spacing */
body.login_admin .form-group,
body.authentication.forgot-password .form-group,
body.authentication.reset-password .form-group,
body.authentication.set-password .form-group {
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    body.login_admin .authentication-form-wrapper,
    body.authentication.forgot-password .authentication-form-wrapper,
    body.authentication.reset-password .authentication-form-wrapper,
    body.authentication.set-password .authentication-form-wrapper {
        padding-top: 3rem !important;
    }
    
    .company-logo {
        padding: 20px !important;
    }
    
    body.login_admin .tw-bg-white,
    body.authentication.forgot-password .tw-bg-white,
    body.authentication.reset-password .tw-bg-white,
    body.authentication.set-password .tw-bg-white {
        margin: 0.5rem !important;
        padding: 2rem 1.5rem !important;
    }
    
    body.login_admin .decoration-circle,
    body.authentication.forgot-password .decoration-circle,
    body.authentication.reset-password .decoration-circle,
    body.authentication.set-password .decoration-circle {
        display: none;
    }
}

/* Loading state for button */
body.login_admin .btn-primary:disabled,
body.authentication.forgot-password .btn-primary:disabled,
body.authentication.reset-password .btn-primary:disabled,
body.authentication.set-password .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Recaptcha styling */
body.login_admin .g-recaptcha,
body.authentication.forgot-password .g-recaptcha,
body.authentication.reset-password .g-recaptcha,
body.authentication.set-password .g-recaptcha {
    border-radius: 12px;
    overflow: hidden;
}

/* Smooth page transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
