* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(circle at top, #144a30 0%, #071710 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.Form {
    width: 100%;
    background: linear-gradient(145deg, rgba(17, 42, 31, 0.95), rgba(7, 23, 16, 0.95));
    border: 2px solid #2EB85C;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(46, 184, 92, 0.15);
    backdrop-filter: blur(8px);
}

.item.i1 {
    text-align: center;
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(46, 184, 92, 0.15);
    color: #86efac;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    border: 1px solid rgba(46, 184, 92, 0.3);
}

.item.i1 h2 {
    color: #86efac;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.item.i1 .sub-heading {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 4px;
}

.item.i2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #d1fae5;
}

/* Định vị icon nằm gọn gàng bên trong khung input */
.input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-box .icon-prefix {
    position: absolute;
    left: 14px;
    color: #4ade80;
    font-size: 15px;
    pointer-events: none;
}

.input-box input {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 40px;
    background: #071710;
    border: 1.5px solid rgba(46, 184, 92, 0.5);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-box input:focus {
    border-color: #86efac;
    box-shadow: 0 0 0 3px rgba(46, 184, 92, 0.25);
}

.input-box input::placeholder {
    color: #6b7280;
    font-size: 14px;
}

/* Icon con mắt ẩn/hiện mật khẩu */
.toggle-pw {
    position: absolute;
    right: 14px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 15px;
    padding: 6px;
}

.toggle-pw:hover {
    color: #86efac;
}

/* Dàn đều Ghi nhớ đăng nhập và Quên mật khẩu sang 2 bên */
.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    cursor: pointer;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #2EB85C;
    cursor: pointer;
}

.forgot-link {
    color: #93c5fd;
    text-decoration: none;
}

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

/* Nút đăng nhập */
.dang-ky {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2EB85C 0%, #15803d 100%);
    color: #071710;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 184, 92, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s, filter 0.2s;
}

.dang-ky:hover {
    filter: brightness(1.08);
}

.dang-ky:active {
    transform: scale(0.98);
}

.dang-ky:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#login-msg {
    font-size: 13px;
    font-weight: bold;
    min-height: 18px;
    text-align: center;
    margin-top: -4px;
}

.switch-auth {
    text-align: center;
    font-size: 13.5px;
    color: #9ca3af;
    margin-top: 6px;
}

.switch-auth a {
    color: #86efac;
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
}

.switch-auth a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 400px) {
    .Form {
        padding: 24px 16px;
    }
    .item.i1 h2 {
        font-size: 21px;
    }
}