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

body {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 48px;
    background: linear-gradient(135deg, #e8ecf0 0%, #e1e6ec 50%, #dde4eb 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.login-wrapper {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.10);
    padding: 36px 40px 32px;
    width: 100%;
    max-width: 380px;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo img {
    max-width: 220px;
    height: auto;
}

/* Alert */
.alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #e67e00;
    color: #7a4800;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.5;
}

/* Form rows */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

.form-row label {
    font-weight: 600;
    font-size: 15.5px;
    color: #333;
    width: 82px;
    min-width: 82px;
    white-space: nowrap;
}

.required {
    color: #e53935;
    margin-left: 2px;
}

.form-row input[type="number"],
.form-row input[type="text"],
.form-row input[type="password"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #c8d6e0;
    border-radius: 4px;
    font-size: 14px;
    background: #fffff0;
    color: #222;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input[type="number"] {
    max-width: 80px;
    text-align: right;
}

.form-row input:focus {
    border-color: #4a9fd4;
    box-shadow: 0 0 0 3px rgba(74, 159, 212, 0.15);
}

/* Password with toggle */
.password-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap input {
    flex: 1;
    padding-right: 40px;
}

.toggle-pass {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #7a9ab0;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-pass:hover {
    color: #4a9fd4;
}

.toggle-pass svg {
    width: 18px;
    height: 18px;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    text-transform: uppercase;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-login {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff;
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.35);
}

.btn-login:hover {
    filter: brightness(1.08);
}

.btn-exit {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: #fff;
    box-shadow: 0 3px 8px rgba(183, 28, 28, 0.35);
}

.btn-exit:hover {
    filter: brightness(1.08);
}

/* Responsive */
@media (max-width: 440px) {
    .login-card {
        padding: 28px 20px 24px;
    }

    .form-row label {
        min-width: 68px;
    }
}
