/* =========================================
   FILE: /root/Home/smartgrade/login.css
   STYLE: SmartTest Navy Aqua (Kính Mờ - Compact 100vh)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    background: radial-gradient(circle at top right, #00b5e2, #004c6d);
    height: 100vh; /* Khóa cứng 100% chiều cao màn hình */
    width: 100vw;
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Cấm xuất hiện thanh cuộn */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 35px 30px 20px 30px; /* Ép gọn chiều dọc */
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 76, 109, 0.5);
    border: 1px solid rgba(0, 181, 226, 0.2);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 380px; /* Bóp chiều ngang lại một chút cho cân đối */
}

.login-box:hover {
    box-shadow: 0 35px 60px -15px rgba(0, 181, 226, 0.4);
}

/* Đẩy Logo trồi lên trên viền để ăn gian chiều cao */
.icon-wrapper {
    background: linear-gradient(135deg, #00b5e2, #008cb3);
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,181,226,0.4);
    transform: rotate(0deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: -65px auto 15px auto; 
    border: 3px solid rgba(255,255,255,0.9);
}

.icon-wrapper i { font-size: 32px; }

.login-box:hover .icon-wrapper {
    transform: rotate(8deg) scale(1.05);
}

.input-group { position: relative; width: 100%; text-align: left; }

.custom-input {
    width: 100%;
    background: #f0f9ff;
    border: 2px solid transparent;
    border-radius: 12px;
    color: #004c6d;
    transition: all 0.3s;
    outline: none;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
}

#username, #fg-nickname, #fg-email { padding: 12px 16px 12px 42px; }
#password { padding: 12px 42px 12px 42px; }

.custom-input:focus {
    background: #fff;
    border-color: #00b5e2;
    box-shadow: 0 0 0 4px rgba(0, 181, 226, 0.15);
}
.custom-input::placeholder { color: #94a3b8; font-weight: 500; font-size: 12px; }

.user-icon, .lock-icon {
    left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: #94a3b8; pointer-events: none; transition: 0.3s;
}

.custom-input:focus ~ .user-icon, .custom-input:focus ~ .lock-icon { color: #00b5e2; }

.toggle-pass {
    right: 16px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; cursor: pointer; padding: 5px; z-index: 20; transition: 0.3s;
}
.toggle-pass:hover { color: #00b5e2; }

.btn-login {
    background: linear-gradient(135deg, #00b5e2, #004c6d);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(0, 181, 226, 0.35);
    border: none;
    cursor: pointer;
}

.btn-login:hover:not(:disabled) { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 25px rgba(0, 181, 226, 0.5);
    background: linear-gradient(135deg, #00c9fa, #005a82);
}
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; box-shadow: none; transform: none; }

/* Box Gợi ý Tài khoản (Autocomplete) */
.autocomplete-items {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    background: #ffffff; border: 1px solid #e0f2fe; border-radius: 12px;
    max-height: 180px; overflow-y: auto; display: none; margin-top: 6px;
    box-shadow: 0 15px 35px rgba(0, 76, 109, 0.2); padding: 4px;
}
.autocomplete-items div {
    padding: 10px 14px; cursor: pointer; color: #004c6d;
    font-size: 12px; border-radius: 8px; margin-bottom: 2px;
    transition: all 0.2s ease;
}
.autocomplete-items div:hover { background: #f0f9ff; color: #00b5e2; font-weight: 700; }
.autocomplete-items::-webkit-scrollbar { width: 5px; }
.autocomplete-items::-webkit-scrollbar-thumb { background: #00b5e2; border-radius: 5px; }