*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e2a3a 0%, #17202e 50%, #0f1720 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background circles */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .07;
}
body::before {
    width: 600px; height: 600px;
    background: #3a7bd5;
    top: -150px; right: -150px;
}
body::after {
    width: 400px; height: 400px;
    background: #38b2ac;
    bottom: -100px; left: -100px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Brand */
.brand {
    text-align: center;
    margin-bottom: 32px;
}
.brand-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #3a7bd5, #2c60b0);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 8px 32px rgba(58,123,213,.4);
}
.brand h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .5px;
}
.brand p {
    color: #8fa8c8;
    font-size: 14px;
    margin-top: 4px;
}

/* Card */
.login-card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-danger  { background: rgba(224,82,82,.2);  color: #ff8585; border: 1px solid rgba(224,82,82,.3); }
.alert-success { background: rgba(56,161,105,.2); color: #68d391; border: 1px solid rgba(56,161,105,.3); }

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    color: #8fa8c8;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}
.input-wrapper { position: relative; }
.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a6080;
    font-size: 15px;
}
.input-wrapper input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
}
.input-wrapper input::placeholder { color: #4a6080; }
.input-wrapper input:focus {
    border-color: #3a7bd5;
    background: rgba(58,123,213,.1);
    box-shadow: 0 0 0 3px rgba(58,123,213,.2);
}

/* Toggle password visibility */
.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a6080;
    cursor: pointer;
    font-size: 15px;
    transition: color .2s;
    background: none;
    border: none;
    padding: 0;
}
.toggle-pw:hover { color: #8fa8c8; }

/* Submit */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3a7bd5, #2c60b0);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(58,123,213,.4);
    margin-top: 8px;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(58,123,213,.5);
}
.btn-login:active { transform: translateY(0); }

/* Footer hint */
.login-hint {
    text-align: center;
    margin-top: 24px;
    color: #4a6080;
    font-size: 13px;
}
.login-hint code {
    background: rgba(255,255,255,.07);
    padding: 2px 8px;
    border-radius: 5px;
    color: #8fa8c8;
    font-size: 12px;
}