/* 
 * Premium SaaS Authentication Theme
 * Includes animated mesh gradients, glassmorphism cards, and micro-interactions.
 */

/* Animated Gradient Background Wrapper */
.auth-premium-bg {
    background: linear-gradient(-45deg, #050810, #0a1835, #073840, #050810);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .auth-premium-bg {
        height: 100vh;
        overflow: hidden;
    }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Optional: Add some glowing orbs in the background for extra depth */
.auth-premium-bg::before,
.auth-premium-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.auth-premium-bg::before {
    width: 400px;
    height: 400px;
    background: #10368a; /* Darker Theme Primary */
    top: -100px;
    left: -100px;
}

.auth-premium-bg::after {
    width: 500px;
    height: 500px;
    background: #096a75; /* Darker Theme Accent */
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glassmorphism Card Container */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 1.5rem; /* 24px */
    z-index: 1; /* Above glowing orbs */
    overflow: hidden; /* For inner borders/radius */
}

/* Premium Form Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.glass-input:focus, .input-group:focus-within .glass-input {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05) !important;
    outline: none !important;
}

/* Input Group specific overrides */
.glass-input-group {
    border-radius: 0.3rem; /* match form-control-lg */
    transition: all 0.3s ease;
}

.glass-input-group .glass-input {
    border-right: none !important;
}

.glass-input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.glass-input-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease !important;
}

.glass-input-group:focus-within .glass-input-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.glass-input-btn:hover {
    color: #ffffff !important;
}

/* Premium Primary Button */
.btn-glass-primary {
    background: linear-gradient(135deg, #1a56d8, #0fa7b8) !important;
    border: none !important;
    color: white !important;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.btn-glass-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0fa7b8, #1a56d8);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-glass-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(15, 167, 184, 0.8) !important;
}

.btn-glass-primary:hover::before {
    opacity: 1;
}

.btn-glass-primary:active {
    transform: translateY(1px);
}

/* Utilities for the glass layout */
.glass-divider {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
    .glass-divider {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.glass-wrapper {
    max-width: 1200px;
    width: 100%;
    min-height: 80vh;
}

/* Glassmorphism Text & Background Utilities (To Avoid Inline CSS) */
.text-white-80 { color: rgba(255,255,255,0.8) !important; }
.text-white-70 { color: rgba(255,255,255,0.7) !important; }
.bg-dark-20 { background: rgba(0,0,0,0.2) !important; }
.border-white-10 { border: 1px solid rgba(255,255,255,0.1) !important; }
.w-160px { width: 160px !important; }
.alert-glass-danger { background: rgba(220, 53, 69, 0.2) !important; color: #ffcccc !important; }
.text-invalid-glass { color: #ffcccc !important; }

/* Match Icon Size to Text */
.glass-input-btn svg {
    width: 20px !important;
    height: 20px !important;
}
.glass-wrapper { max-width: 1200px; width: 100%; min-height: 80vh; }
