﻿/*body {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: top;
    background-image: url('../images/bg.png');
}*/

/* Advanced animated gradient background */
.bg {
    animation: slideGradient 8s ease-in-out infinite alternate;
    background: linear-gradient(-60deg, #0360af, #253978, #1e5a9e, #1a2854);
    background-size: 400% 400%;
    bottom: 0;
    left: -50%;
    opacity: .6;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation: slideGradient 12s ease-in-out infinite alternate-reverse;
    background: linear-gradient(45deg, #0360af, #1e5a9e, #253978, #2d4a7c);
    background-size: 400% 400%;
    opacity: .5;
}

.bg3 {
    animation: slideGradient 15s ease-in-out infinite alternate;
    background: linear-gradient(-45deg, #253978, #0360af, #1a2854, #1e5a9e);
    background-size: 400% 400%;
    opacity: .4;
}

@keyframes slideGradient {
    0% {
        transform: translateX(-25%) translateY(-10%) rotate(0deg);
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        transform: translateX(25%) translateY(10%) rotate(10deg);
        background-position: 0% 50%;
    }
}

/* Floating particles animation */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float linear infinite;
}

.particle:nth-child(1) {
    width: 8px;
    height: 8px;
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 12px;
    height: 12px;
    left: 20%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 6px;
    height: 6px;
    left: 30%;
    animation-duration: 20s;
    animation-delay: 4s;
}

.particle nth-child(4) {
    width: 10px;
    height: 10px;
    left: 40%;
    animation-duration: 22s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 8px;
    height: 8px;
    left: 50%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    width: 14px;
    height: 14px;
    left: 60%;
    animation-duration: 19s;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    width: 7px;
    height: 7px;
    left: 70%;
    animation-duration: 17s;
    animation-delay: 2s;
}

.particle:nth-child(8) {
    width: 11px;
    height: 11px;
    left: 80%;
    animation-duration: 21s;
    animation-delay: 4s;
}

.particle:nth-child(9) {
    width: 9px;
    height: 9px;
    left: 90%;
    animation-duration: 23s;
    animation-delay: 1s;
}

.particle:nth-child(10) {
    width: 13px;
    height: 13px;
    left: 15%;
    animation-duration: 18s;
    animation-delay: 6s;
}

@keyframes float {
    0% {
        bottom: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Animated wave overlay */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 200%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 45%;
    animation: waveAnimation 12s linear infinite;
}

.wave:nth-child(2) {
    bottom: -120px;
    animation-duration: 15s;
    animation-delay: -2s;
    opacity: 0.7;
}

.wave:nth-child(3) {
    bottom: -140px;
    animation-duration: 18s;
    animation-delay: -4s;
    opacity: 0.5;
}

@keyframes waveAnimation {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25%) translateY(-20px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Glowing orbs */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(3, 96, 175, 0.8), transparent);
    top: 20%;
    left: 10%;
    animation-duration: 20s;
}

.orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 57, 120, 0.6), transparent);
    top: 60%;
    right: 15%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.orb:nth-child(3) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(30, 90, 158, 0.7), transparent);
    bottom: 10%;
    left: 50%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.9);
    }
}

/* Fluent-style acrylic glass container */
.blurred-box {
    border-radius: 18px;
    margin-top: 48px;
    position: relative;
    z-index: 100;
    padding: 44px 40px;

    /* base: translucent acrylic with slight tint to match Fluent theme */
    background-color: rgba(255, 255, 255, 0.06);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    background-blend-mode: overlay;

    /* heavy frosted blur for depth (acrylic effect) */
    backdrop-filter: blur(20px) saturate(140%) contrast(0.98) brightness(0.98);
    -webkit-backdrop-filter: blur(20px) saturate(140%) contrast(0.98) brightness(0.98);

    /* crisp translucent border and subtle inner highlight */
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 40px rgba(8, 20, 40, 0.55), inset 0 1px 0 rgba(255,255,255,0.026);

    transition: transform 300ms cubic-bezier(.2,.9,.3,1), box-shadow 300ms, border-color 300ms;
    overflow: hidden;
}

/* soft tint wash to the top-left for color coherence with animated background */
.blurred-box::before {
    content: '';
    position: absolute;
    inset: -20% -25% auto auto;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at 5% 10%, rgba(3, 120, 255, 0.10), transparent 35%);
    filter: blur(14px);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

/* sheen + subtle noise overlay to emulate acrylic texture */
.blurred-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;

    /* layered overlays: slight moving sheen and fine noise */
    background-image:
        linear-gradient(120deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 30%, rgba(255,255,255,0.01) 70%, rgba(255,255,255,0.03) 100%),
        radial-gradient(circle at 20% 10%, rgba(255,255,255,0.02), transparent 20%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><filter id="n"><feTurbulence baseFrequency="0.8" numOctaves="1" stitchTiles="stitch" /><feColorMatrix type="saturate" values="0" /></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.03" fill="white"/></svg>');
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: 100% 100%, 40% 40%, 20px 20px;

    animation: acrylic-sheen 8s linear infinite;
}

@keyframes acrylic-sheen {
    0% { transform: translateX(-6%); opacity: 0.95; }
    50% { transform: translateX(6%); opacity: 1; }
    100% { transform: translateX(-6%); opacity: 0.95; }
}

/* darker inner vignette for contrast */
.blurred-box .vignette {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 40px 80px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 2;
}

/* make sure children are displayed above overlays */
.blurred-box > * {
    position: relative;
    z-index: 3;
}

/* Logo container */
.logo-container {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeIn 1.2s ease-out;
}

.logo-container img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
    width: auto;
    height: auto;
}

.logo-container img:hover {
    transform: scale(1.08) rotate(2deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Login title */
.login-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form inputs */
.form-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.form-control {
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    padding: 14px 22px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15),
                inset 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    outline: none;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.18) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Submit button */
.btn-primary {
    background: linear-gradient(135deg, #0360af 0%, #253978 100%);
    border: none;
    border-radius: 14px;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px 0 rgba(3, 96, 175, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-transform: uppercase;
    color: #ffffff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px 0 rgba(3, 96, 175, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #0470cf 0%, #2d4298 100%);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 15px 0 rgba(3, 96, 175, 0.5);
}

/* Validation messages */
.text-danger {
    color: #ff6b6b !important;
    font-size: 13px;
    margin-top: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 600;
}

.validation-summary-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-summary-errors li {
    background: rgba(255, 107, 107, 0.2);
    border-left: 4px solid #ff6b6b;
    padding: 12px 18px;
    margin-bottom: 12px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Footer section */
.login-footer {
    margin-top: 35px;
    text-align: center;
}

.login-footer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    font-weight: 500;
}

.login-footer-text a {
    color: #00e5ff; /* brighter cyan for higher contrast */
    text-decoration: none;
    font-weight: 600;
    transition: color 160ms ease, text-shadow 160ms ease;
}

.login-footer-text a:hover {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255,255,255,0.6);
}

.server-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

/* Divider */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    margin: 25px 0;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px 0 rgba(3, 96, 175, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 6px 30px 0 rgba(3, 96, 175, 0.8),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.btn-primary.loading {
    position: relative;
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite !important;
    background: linear-gradient(135deg, #0470cf 0%, #2d4298 100%) !important;
    transform: none !important;
}

.btn-primary.loading::before {
    display: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Center form content inside the blurred-box */
#account {
    text-align: center; /* center inline content like labels and small text */
}

#account .form-label {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

#account .form-control {
    margin: 0 auto 12px auto; /* center block inputs */
    text-align: center;       /* center placeholder and typed text */
    max-width: 100%;
    width: 100%;
}

#account .validation-summary-errors {
    display: inline-block; /* allow centered block */
    text-align: left;       /* keep list items left aligned for readability */
    margin-bottom: 12px;
}

#account .btn-primary {
    display: inline-block;
    width: auto; /* allow the button to size to content while staying centered */
    min-width: 200px; /* keep a comfortable click area */
    padding-left: 36px;
    padding-right: 36px;
}

/* small screens: keep inputs full width but centered text */
@media (max-width: 576px) {
    #account .form-control {
        width: 100%;
    }

    #account .btn-primary {
        width: 100%;
        min-width: 0;
    }
}