/**
 * สไตล์สำหรับหน้าเข้าสู่ระบบและการแสดงสถานะ
 */
body.login-page {
    background: linear-gradient(135deg, #1976d2, #0D47A1);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Prompt', 'Sarabun', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 30px;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-box:hover {
    transform: translateY(-10px);
}

.login-logo img {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.login-logo h1 {
    color: #1565c0;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-control {
    height: 45px;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.btn-primary {
    background-color: #1565c0;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0D47A1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

/* สไตล์สำหรับ loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loading-overlay.show .loading-container {
    transform: translateY(0);
}

.loading-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 5px solid rgba(25, 118, 210, 0.2);
    border-radius: 50%;
    border-top-color: #1976d2;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-message {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.loading-progress-container {
    height: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 5px;
}

.loading-progress-text {
    font-size: 14px;
    color: #666;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* สไตล์สำหรับข้อความแจ้งเตือน */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    position: relative;
    border-left: 4px solid;
}

.alert-danger {
    background-color: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f;
}

.alert i {
    margin-right: 10px;
}

/* แอนิเมชันสำหรับข้อความสถานะ */
.loading-status-step {
    display: flex;
    align-items: center;
    margin: 5px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
}

.loading-status-step.active {
    opacity: 1;
    transform: translateY(0);
}

.loading-status-step .step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-status-step.done .step-icon {
    background-color: #4caf50;
    color: white;
}

.loading-status-step.current .step-icon {
    background-color: #1976d2;
    color: white;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 20px;
    }
}

/* ลูกเล่นพิเศษ - ลายพื้นหลังแบบ gradient wave */
.login-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230D47A1" fill-opacity="0.3" d="M0,160L48,144C96,128,192,96,288,101.3C384,107,480,149,576,160C672,171,768,149,864,128C960,107,1056,85,1152,96C1248,107,1344,149,1392,170.7L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat;
    background-size: 100% auto;
    background-position: bottom;
    z-index: -1;
}
