/* GD DMC - Premium Authentication Stylesheet */

.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #0d1527 0%, #050811 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.login-container.show {
    opacity: 1;
    visibility: visible;
}

/* Glassmorphism Background Blobs */
.blob-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #10b981;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

/* Glassmorphic Login Card */
.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.05);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s;
}

.login-container.show .login-card {
    transform: translateY(0);
    opacity: 1;
}

/* Logo & Headers */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.login-logo-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

.login-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Interactive Inputs */
.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.login-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.login-input {
    width: 100%;
    padding: 0.9rem 1.25rem 0.9rem 2.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.login-input:focus + i {
    color: #3b82f6;
}

/* Forgot password & Checkbox link */
.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.8rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.login-remember input {
    accent-color: #3b82f6;
    cursor: pointer;
}

.login-forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-forgot-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Button & Spinner */
.login-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(59, 130, 246, 0.4);
    filter: brightness(1.05);
}

.login-btn:active {
    transform: translateY(0);
}

/* Secondary Actions (Back link) */
.login-back-link {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.login-back-link:hover {
    color: #fff;
}

/* Float Animations */
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.9); }
}

/* Hide content helper */
body:not(.logged-in) .app-container {
    display: none !important;
}

/* Custom visual adjustments for user management table */
.users-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.users-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
    padding: 2rem;
    animation: slideInUp 0.5s ease-out;
}

.users-badge-active {
    background: #ecfdf5;
    color: #10b981;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.users-badge-inactive {
    background: #fef2f2;
    color: #ef4444;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
}
