:root {
    /* Updated to match your navy image */
    --primary-blue: #183A78;
    --primary-blue-light: #2c4f9e;
    --primary-blue-dark: #122c5c;
    --accent: #6366f1;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
}

* {
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Background using your primary-blue-dark for a professional depth */
    background: radial-gradient(circle at center, var(--primary-blue-light) 0%, var(--primary-blue-dark) 100%);
    overflow: hidden;
}

/* Updated glow blob to be more subtle against the navy */
.background-blobs {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(150px);
    border-radius: 50%;
    z-index: -1;
    top: 10%;
    left: 20%;
    opacity: 0.25;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* --- LOGO SECTION --- */
.logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    /* Use the primary blues for the icon base */
    background: linear-gradient(135deg, var(--primary-blue-light), var(--accent));
    border-radius: 18px;
    position: relative;
    transform: rotate(-15deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* The Flight Path Detail */
.logo-icon::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 1px;
    background-image: linear-gradient(to right, white 40%, rgba(255,255,255,0) 0%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
    bottom: 20px;
    left: -10px;
    transform: rotate(15deg); /* Flattens line against the -15deg container */
    opacity: 0.4;
}

/* The Paper Plane Shape */
.logo-icon::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: white;
    top: 50%;
    left: 50%;
    /* Points the plane "up and right" */
    transform: translate(-45%, -55%) rotate(75deg);
    clip-path: polygon(50% 0%, 100% 100%, 50% 75%, 0% 100%);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* --- FORM STYLING --- */
.login-header h1 {
    font-weight: 700;
    font-size: 2rem;
    background: linear-gradient(to bottom, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}


/* ส่วนที่เพิ่มสำหรับ Username Group */
.input-group {
    text-align: left;
    margin-bottom: 25px;
}

.input-group label, .otp-section label {
    display: block;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 8px;
    margin-left: 5px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}
  /* OTP Inputs */
.otp-input-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.otp-field {
    width: 100%;
    height: 55px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.otp-field:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}
.otp-section {
    text-align: left;
    margin-bottom: 30px;
}

.otp-section label {
    text-align: left;
}


.login-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}
