/* ==========================================================================
   ASHICO Admin Login — Modern glassy design (19/04/2026)
   ========================================================================== */

:root {
    --ashico-blue:       #034ea2;
    --ashico-blue-dark:  #023a7a;
    --ashico-blue-light: #0066cc;
    --ashico-gold:       #d4af37;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Exo 2', 'Plus Jakarta Sans', 'Roboto', sans-serif;
    background: #0a1f3d;
    overflow: hidden;
}

/* Full-screen animated gradient background */
.login-bg {
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(3, 78, 162, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(236, 32, 40, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, #0a1f3d 0%, #061530 50%, #0a1f3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* Subtle floating blobs */
.login-bg::before,
.login-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: floating 10s ease-in-out infinite;
}

.login-bg::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(3, 78, 162, 0.6) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

.login-bg::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

@keyframes floating {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -30px) scale(1.1); }
}

/* Login card — glassy effect */
.login-card {
    position: relative;
    z-index: 2;
    max-width: 440px;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow:
        0 25px 50px -12px rgba(3, 78, 162, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.login-logo {
    max-height: 72px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(3, 78, 162, 0.2));
}

.login-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 30px;
    text-align: center;
}

/* Form */
.login-card form { margin-top: 10px; }

.login-card .form-group {
    position: relative;
    margin-bottom: 18px;
}

.login-card .form-label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748b !important;
    margin-bottom: 6px;
    display: block;
}

.login-card .form-control {
    height: 48px;
    border: 1.5px solid #e5e9f2;
    border-radius: 12px;
    padding: 0 16px 0 44px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.login-card .form-control:focus {
    outline: none;
    border-color: var(--ashico-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(3, 78, 162, 0.12);
}

/* Icon inside input */
.login-card .form-group .input-icon {
    position: absolute;
    left: 14px;
    top: 36px;
    width: 22px;
    height: 22px;
    color: #94a3b8;
    transition: color 0.25s;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.login-card .form-group:focus-within .input-icon { color: var(--ashico-blue); }

/* Remember me */
.login-card .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.login-card .form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid #e5e9f2;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
}

.login-card .form-check-input:checked {
    background-color: var(--ashico-blue);
    border-color: var(--ashico-blue);
}

.login-card .form-check-label {
    font-size: 0.88rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

/* Submit button */
.login-card .thm-btn,
.login-card button[type="submit"] {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, var(--ashico-blue) 0%, var(--ashico-blue-light) 100%);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(3, 78, 162, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.login-card .thm-btn:hover,
.login-card button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(3, 78, 162, 0.45);
    background: linear-gradient(135deg, var(--ashico-blue-light) 0%, var(--ashico-blue) 100%);
}

.login-card .thm-btn:active,
.login-card button[type="submit"]:active {
    transform: translateY(0);
}

/* Validation error */
.login-card .text-danger {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #991b1b !important;
    margin-bottom: 12px;
}

/* Footer signature */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.78rem;
    color: #94a3b8;
}

.login-footer strong { color: var(--ashico-blue); }

/* Responsive */
@media (max-width: 480px) {
    .login-card { padding: 30px 22px; border-radius: 16px; }
    .login-title { font-size: 1.35rem; }
    .login-logo { max-height: 60px; }
}
