/*
 * Login & Logout Stylesheet
 * Theme: Serene Coast (2025)
 */

/* --- General --- */
body {
    font-family: 'Prompt', sans-serif;
    min-height: 100vh;
    /* New serene gradient background */
    background: linear-gradient(135deg, #a2d2ff 0%, #66b2b2 100%);
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scroll */
    color: #343a40;
}

/* --- Animated Background --- */
.bg-animation {
    position: fixed; /* Fix background */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.bg-animation span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: move 25s linear infinite;
    bottom: -150px;
}

@keyframes move {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100% { transform: translateY(-120vh) rotate(720deg); opacity: 0; border-radius: 50%; }
}

.bg-animation span:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.bg-animation span:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.bg-animation span:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.bg-animation span:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.bg-animation span:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }

/* --- Glass Morphism Card --- */
.glass-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    z-index: 1;
    width: 100%; /* Make it full width of its column */
}

/* --- Form Elements --- */
.form-control {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #343a40;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border-radius: 10px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: #4c91a9;
    box-shadow: 0 0 0 0.2rem rgba(76, 145, 169, 0.25);
    color: #343a40;
}

.form-control::placeholder {
    color: rgba(52, 58, 64, 0.7);
}

.form-label {
    color: #3e7a8f; /* Dark Teal for labels */
    font-weight: 500;
}

/* --- Buttons & Links --- */
.btn-login {
    background: #4c91a9; /* Muted Teal */
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(76, 145, 169, 0.4);
}

.btn-login:hover {
    transform: translateY(-3px);
    background: #3e7a8f;
    box-shadow: 0 6px 20px 0 rgba(76, 145, 169, 0.5);
}

/* --- Text & Headers --- */
h2 {
    color: #343a40;
    font-weight: 600;
}

.text-muted {
    color: rgba(52, 58, 64, 0.8) !important;
}

/* --- Logo & Icons --- */
.logo-container {
    padding: 10px;
    background: transparent;
    box-shadow: none;
    width: 150px;
    height: auto;
}
.logo-container img {
    max-width: 100%;
    height: auto;
}

/* --- Logout Page --- */
.logout-card {
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #4c91a9; /* Match theme accent color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon i {
    font-size: 50px;
    color: white;
}

/* --- START OF RESPONSIVE FIX --- */
@media (max-width: 576px) {
    .glass-card {
        padding: 25px; /* ลด Padding บนมือถือ */
    }
}
/* --- END OF RESPONSIVE FIX --- */
