/* Custom variables for premium styling */
:root {
    --primary-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --primary-grad-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --bg-grad: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --font-outfit: 'Outfit', 'Inter', 'Open Sans', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* Reset and Layout */
body.login {
    background: var(--bg-grad) !important;
    font-family: var(--font-outfit) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0 !important;
    padding: 20px !important;
    position: relative;
    overflow: hidden;
}

/* Background animated glow bubbles */
.glow-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.glow-bubble-1 {
    width: 350px;
    height: 350px;
    background: #6366f1;
    top: -5%;
    left: 10%;
    animation-delay: 0s;
}

.glow-bubble-2 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    bottom: -10%;
    right: 10%;
    animation-delay: 2s;
}

.glow-bubble-3 {
    width: 280px;
    height: 280px;
    background: #0ea5e9;
    top: 40%;
    right: 25%;
    animation-delay: 4s;
}

@keyframes floatGlow {
    0% {
        transform: translateY(0px) scale(1);
    }
    100% {
        transform: translateY(30px) scale(1.15);
    }
}

/* Logo Section */
.login .logo {
    position: relative;
    z-index: 10;
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
    text-align: center;
    transition: transform 0.3s ease;
}

.login .logo:hover {
    transform: scale(1.05);
}

.logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

/* Main glass container */
.login .content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45) !important;
    padding: 40px !important;
    margin: 0 auto 30px !important;
    transition: all 0.3s ease;
}

.login .content:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15) !important;
}

/* Headings and titles */
.login .content .form-title {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 26px;
    color: var(--text-primary) !important;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login .content h3 {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary) !important;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login .content p {
    color: var(--text-secondary);
    font-size: 15px;
    text-align: center;
    margin-bottom: 20px;
}

/* Input Fields styling */
.login .content .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login .content .input-icon {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    background: rgba(15, 23, 42, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important; /* Overriding old style */
}

.login .content .input-icon:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    background: rgba(15, 23, 42, 0.6) !important;
}

.login .content .input-icon i {
    position: static !important;
    margin: 0 !important;
    color: var(--text-secondary) !important;
    font-size: 16px;
    transition: color 0.3s ease;
}

.login .content .input-icon:focus-within i {
    color: #6366f1 !important;
}

.login .content .form-control {
    position: static !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    height: 48px;
    font-size: 15px;
    font-family: var(--font-inter);
    font-weight: 400;
    padding-left: 10px !important;
    box-shadow: none !important;
    width: 100%;
}

.login .content .form-control::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.8;
}

/* Form actions / buttons */
.login .content .form-actions {
    padding: 10px 0 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.login .content .form-actions .btn,
.login .content .form-actions input[type="submit"] {
    flex: 1;
    margin: 0 !important;
    float: none !important;
    height: 48px;
    border-radius: 12px !important;
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    border: none !important;
}

/* Primary Button (Login/Submit) */
.login .content .form-actions .btn.green,
.login .content .form-actions input[type="submit"] {
    background: var(--primary-grad) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
    cursor: pointer;
}

.login .content .form-actions .btn.green:hover,
.login .content .form-actions input[type="submit"]:hover {
    background: var(--primary-grad-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55) !important;
}

.login .content .form-actions .btn.green:active,
.login .content .form-actions input[type="submit"]:active {
    transform: translateY(0);
}

/* Secondary Button (Back) */
.login .content .form-actions .btn.grey-salsa {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.login .content .form-actions .btn.grey-salsa:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Forget password link */
.login .content .forget-password {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.login .content .forget-password a,
.login .content p a {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login .content .forget-password a:hover,
.login .content p a:hover {
    color: #56cbf9 !important;
    text-decoration: underline;
}

/* Alert Boxes custom design */
.custom-alerts.alert {
    border-radius: 12px !important;
    font-size: 14px;
    font-family: var(--font-inter);
    border: none !important;
    margin-bottom: 20px;
    padding: 15px !important;
    backdrop-filter: blur(10px);
}

.custom-alerts.alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.custom-alerts.alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.custom-alerts.alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.custom-alerts .close {
    color: inherit !important;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.custom-alerts .close:hover {
    opacity: 1;
}

/* Footer / Copyright Section */
.login .copyright {
    position: relative;
    z-index: 10;
    text-align: center;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100%;
    max-width: 440px;
    background: transparent !important;
    color: var(--text-secondary) !important;
    font-size: 13px;
}

.login .copyright p {
    color: var(--text-secondary) !important;
    margin: 0;
}

.login .copyright b {
    color: var(--text-primary);
}

/* Mobile responsive adjustments */
@media (max-width: 500px) {
    .login .content {
        padding: 30px 20px !important;
        margin: 0 auto 20px !important;
        border-radius: 18px !important;
    }
    
    .login .content .form-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .logo img {
        max-width: 140px;
    }
}
