@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    /* Soft NiceAdmin background color */
    background: #f6f9ff;
    /* Add a premium soft geometric/gradient overlay in light blues */
    background-image: 
        radial-gradient(at 0% 0%, rgba(65, 84, 241, 0.08) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(13, 110, 253, 0.08) 0, transparent 50%);
    background-size: cover;
    background-attachment: fixed;
    color: #444444;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Subtle animated light orbs - using NiceAdmin Blue */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 12s infinite ease-in-out alternate;
}
.orb-1 {
    width: 500px; height: 500px;
    background: rgba(65, 84, 241, 0.12); /* NiceAdmin Primary Blue */
    top: -150px; left: -150px;
}
.orb-2 {
    width: 400px; height: 400px;
    background: rgba(1, 41, 112, 0.08); /* NiceAdmin Dark Blue */
    bottom: -100px; right: -100px;
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.05); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    z-index: 10;
}

.auth-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 30px 0 rgba(1, 41, 112, 0.08); /* NiceAdmin signature shadow */
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px 0 rgba(1, 41, 112, 0.12);
}

.brand-icon {
    text-align: center;
    margin-bottom: 0.5rem;
}

.brand-icon i {
    font-size: 3.5rem;
    color: #4154f1; /* NiceAdmin Primary */
    text-shadow: 0 4px 10px rgba(65, 84, 241, 0.3);
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #012970; /* NiceAdmin Dark Blue Title Color */
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    text-align: center;
    color: #899bbd;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #012970;
    margin-bottom: 0.4rem;
}

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

.input-icon-wrapper i {
    position: absolute;
    left: 1rem;
    color: #aab7cf;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.nice-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    color: #444444;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

.nice-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(65, 84, 241, 0.25);
}

.nice-input:focus + i,
.input-icon-wrapper:focus-within i {
    color: #4154f1;
}

.nice-input::placeholder {
    color: #b1bccd;
}

.btn-login {
    width: 100%;
    background: #4154f1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(65, 84, 241, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-login:hover {
    background: #2a3fb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(65, 84, 241, 0.4);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(65, 84, 241, 0.3);
}

.error-alert {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

.footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #899bbd;
}
