/* Font Thai */
body {
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
}

/* Login Box */
.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    animation: slideIn 0.5s ease-out;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.login-header h2 {
    color: #1a1a1a;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.login-header p {
    color: #6b7280;
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Form Styling */
.form-label {
    color: #374151;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #667eea;
}

.form-control {
    border-left: none;
    padding: 12px 15px;
    font-size: 15px;
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
    border-radius: 8px;
}

.form-control:focus {
    box-shadow: none;
    border-color: #667eea;
}

.input-group:focus-within .input-group-text {
    border-color: #667eea;
}

/* Toggle Password Button */
#togglePassword {
    border-left: none;
    background-color: #f8f9fa;
}

#togglePassword:hover {
    background-color: #e9ecef;
}

/* Remember Checkbox */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* Login Button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px;
    font-size: 16px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.3s;
    border-radius: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alert Messages */
.alert {
    font-size: 14px;
    margin-bottom: 15px;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Demo Info Box */
.demo-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.demo-info h6 {
    color: #667eea;
    font-family: 'Kanit', sans-serif;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.demo-info small {
    color: #6b7280;
    font-family: 'Kanit', sans-serif;
    line-height: 1.8;
    font-weight: 400;
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 576px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
    
    .logo-icon {
        font-size: 40px;
    }
}