@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #0ea5e9;
    --primary-pink: #db2777;
    --dark-blue: #0369a1;
    --text-color: #1e293b;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Sarabun', sans-serif;
}

/* 🔹 พื้นหลังแบบ Gradient เคลื่อนไหว */
.login-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}


.login-wrapper::before {
    background: rgba(14, 165, 233, 0.1);
    top: -100px;
    left: -100px;
}
.login-wrapper::after {
    background: rgba(219, 39, 119, 0.05);
    bottom: -100px;
    right: -100px;
}

/* 🔹 ตัวกล่อง Login (Glassmorphism) */
.login-container {
    width: 100%;
    max-width: 420px; 
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.03),
            0 12px 30px rgba(0,0,0,0.10);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    width: 90px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

h1 {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin: 0;
}

.school-name {
    font-size: 0.9rem;
    color: var(--primary-pink);
    font-weight: 600;
    margin-top: 5px;
}

h2 {
    font-size: 1.2rem;
    margin: 30px 0 5px;
    color: var(--text-color);
}

.subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 30px;
}

/* 🔹 Form Elements */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.input-group label i {
    color: var(--primary-blue);
    margin-right: 5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s;
    background: #f8fafc;
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* 🔹 ปุ่มกด */
.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
    filter: brightness(1.1);
}

.login-footer {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.link-create-admin {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #64748b;                 /* โทนเดียวกับ subtitle */
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.link-create-admin:hover {
    color: var(--primary-blue);     /* โทนฟ้าเข้าธีม */
    text-decoration-thickness: 2px; /* เส้นใต้ชัดขึ้นตอน hover */
}

.link-create-admin:active {
    opacity: 0.7;
}