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

body {
    min-height: 100vh;
    background: #0f0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Ambient glow effects */
body::before {
    content: '';
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(83,74,183,0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(29,158,117,0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Card */
.login-card {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* Eyebrow */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.eyebrow-line {
    flex: 1;
    height: 0.5px;
    background: rgba(255,255,255,0.1);
}

.eyebrow-text {
    font-size: 11px;
    font-weight: 500;
    color: #7F77DD;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Heading */
.login-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #EEEDFE;
    line-height: 1.25;
    margin-bottom: 8px;
}

.login-sub {
    font-size: 13px;
    color: #5F5E5A;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Error banner */
.alert-login {
    background: rgba(240,149,149,0.08);
    border: 0.5px solid rgba(240,149,149,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-login i {
    font-size: 16px;
    color: #F09595;
    margin-top: 1px;
    flex-shrink: 0;
}

.alert-login p {
    margin: 0;
    font-size: 13px;
    color: #F09595;
    line-height: 1.5;
}

/* Form fields */
.form-field {
    margin-bottom: 14px;
}

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

.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: #444441;
    pointer-events: none;
    z-index: 2;
    transition: color 0.15s;
}

.input-wrap:focus-within .input-icon {
    color: #7F77DD;
}

.form-input {
    width: 100%;
    height: 46px;
    background: rgba(255,255,255,0.04);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0 14px 0 42px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #EEEDFE;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.form-input::placeholder {
    color: #444441;
}

.form-input:focus {
    border-color: #534AB7;
    background: rgba(83,74,183,0.08);
    box-shadow: 0 0 0 3px rgba(83,74,183,0.12);
}

.form-input.is-invalid {
    border-color: rgba(240,149,149,0.5);
    background: rgba(240,149,149,0.04);
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(240,149,149,0.1);
}

.error-msg {
    font-size: 12px;
    color: #F09595;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-msg i {
    font-size: 13px;
}

/* Password toggle */
.btn-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #444441;
    font-size: 17px;
    display: flex;
    align-items: center;
    z-index: 2;
    transition: color 0.15s;
}

.btn-eye:hover {
    color: #7F77DD;
}

.form-input.has-toggle {
    padding-right: 46px;
}

/* Submit button */
.btn-login {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    border-radius: 8px;
    background: #534AB7;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Syne', sans-serif;
    color: #EEEDFE;
    letter-spacing: 0.04em;
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    background: #3C3489;
}

.btn-login:active {
    transform: scale(0.99);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 0;
}

.divider-line {
    flex: 1;
    height: 0.5px;
    background: rgba(255,255,255,0.07);
}

.divider-text {
    font-size: 12px;
    color: #444441;
}

/* Back link */
.back-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #5F5E5A;
}

.back-link a {
    color: #AFA9EC;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}

.back-link a:hover {
    color: #EEEDFE;
}
