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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.login-logo svg { margin-bottom: .75rem; }
.login-logo h1 { font-size: 1.5rem; font-weight: 700; color: #1e293b; }
.login-logo p  { font-size: .875rem; color: #64748b; margin-top: .25rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: .875rem;
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    padding: .7rem 2.75rem .7rem 2.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: .95rem;
    color: #1e293b;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.input-wrap input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.toggle-pw {
    position: absolute;
    right: .875rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #9ca3af;
    width: 18px;
    height: 18px;
}
.toggle-pw svg { width: 18px; height: 18px; }

.captcha-wrap { display: flex; justify-content: center; }

.alert { padding: .75rem 1rem; border-radius: 8px; font-size: .875rem; margin-bottom: 1rem; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.btn-login {
    width: 100%;
    padding: .8rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s, opacity .2s;
}
.btn-login:hover:not(:disabled) { background: #1d4ed8; }
.btn-login:disabled { opacity: .6; cursor: not-allowed; }

.btn-loader { display: inline-flex; }
.spin { width: 20px; height: 20px; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
