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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("assets/images/STI Calamba.jpg?v=20260406") center/cover no-repeat fixed;
    color: #1f2937;
}

.login-container {
    width: 100%;
    max-width: 520px;
    padding: 1.5rem;
    margin: 16px;
}

.form-box {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-top: 8px solid #f4d100;
    padding: 36px 32px 30px;
    display: none;
}

.form-box.active {
    display: block;
}

.card-header {
    text-align: center;
    margin-bottom: 28px;
}

.brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    margin: 0 auto 14px;
    background: #e7edf5;
    color: #0a57a9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon svg {
    width: 30px;
    height: 30px;
}

.card-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0d2547;
    letter-spacing: 0.3px;
}

.card-header p {
    font-size: 16px;
    color: #4d6482;
}

.login-card .card-header h2 {
    font-size: 42px;
}

.login-card .card-header p {
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #132e57;
    margin-bottom: 10px;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border-radius: 14px;
    border: 1px solid #ccd5e0;
    background: #f7f8fb;
    font-size: 16px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group select {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background-color: #f7f8fb;
    background-image: none;
    background-repeat: no-repeat;
    cursor: pointer;
}

.input-group select:focus {
    border-color: rgba(99, 102, 241, 0.85);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    outline: none;
}


.input-group input:focus {
    border-color: rgba(99, 102, 241, 0.85);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #8d99aa;
    pointer-events: none;
}

.input-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 116, 139, 0.8);
    transition: background 0.15s ease;
}

.password-toggle:hover {
    background: rgba(148, 163, 184, 0.18);
}

.password-toggle::before {
    content: "\1F441"; /* eye */
    font-size: 16px;
}

.password-toggle.visible::before {
    content: "\1F441"; /* eye */
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 24px;
    font-size: 16px;
    color: rgba(15, 23, 42, 0.72);
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    width: 22px;
    height: 22px;
    accent-color: #6366f1;
}

.forgot {
    color: #0a57a9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.12);
    color: #1e293b;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn.primary {
    background: #0554a5;
    border-color: #0554a5;
    color: #ffffff;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary:hover {
    background: #04488e;
}

.divider {
    height: 1px;
    width: 100%;
    margin: 28px 0 20px;
    background: rgba(148, 163, 184, 0.25);
}

.register-cta {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.65);
}

.register-cta .link {
    color: #0554a5;
    text-decoration: none;
    font-weight: 700;
}

.register-cta .link:hover {
    text-decoration: underline;
}

.error-message {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.6);
    border: 1px solid rgba(220, 38, 38, 0.5);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

.success-message {
    color: #166534;
    background: rgba(187, 247, 208, 0.6);
    border: 1px solid rgba(34, 197, 94, 0.5);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }

    .form-box {
        padding: 28px 20px;
    }

    .card-header h2,
    .login-card .card-header h2 {
        font-size: 34px;
    }

    .card-header p,
    .login-card .card-header p {
        font-size: 14px;
    }

    .field-label,
    .forgot,
    .form-footer,
    .register-cta,
    .input-group input,
    .input-group select {
        font-size: 15px;
    }

    .btn {
        font-size: 24px;
    }
}
