﻿html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #fffdf9, #fdf6f0, #f8faff);
    display: block;
    position: relative;
    overflow-x: hidden;
}

/* Floating pastel circles */
.bg-animation {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    top: 0;
    left: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 182, 193, 0.15);
    animation: float 6s ease-in-out infinite;
}

.circle1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 8%;
    background: rgba(255, 215, 0, 0.15);
}

.circle2 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    right: 10%;
    background: rgba(173, 216, 230, 0.2);
}

.circle3 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 5%;
    background: rgba(221, 160, 221, 0.15);
}

@@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive login container */
.login-container {
    background: #ffffffcc;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem 1.2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border: 1px solid #f5e6da;
    margin: 3rem auto;
}

@media (max-width: 600px) {
    .login-container {
        margin: 1.5rem auto;
        padding: 1.2rem 0.3rem;
        min-height: unset;
        max-width: 98vw;
        border-radius: 12px;
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f9d29d, #ffd700);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.app-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5a3e2b;
    margin-bottom: 0.3rem;
}

.app-subtitle {
    color: #8b6f56;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.3rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #5a3e2b;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 2px solid #f2e4da;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fffdf9;
    box-sizing: border-box;
}

    .form-input:focus {
        outline: none;
        border-color: #d4af37;
        background: white;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    }

.input-icon {
    position: absolute;
    left: 1rem;
    top: 66%;
    transform: translateY(-50%);
    color: #a07b46;
    font-size: 1.2rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 66%;
    transform: translateY(-50%);
    color: #a07b46;
    cursor: pointer;
    font-size: 1.1rem;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffd700, #f9c846);
    color: #4a3b27;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

    .login-btn:hover {
        background: linear-gradient(135deg, #f9c846, #f5b942);
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(212, 175, 55, 0.25);
    }

/* Popup message */
.popup-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #fbc02d);
    color: #4a3b27;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.5s forwards;
    z-index: 9999;
}

@@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-message {
    transition: opacity 0.5s ease;
    opacity: 1;
}

    .popup-message.hidden {
        opacity: 0;
        pointer-events: none;
    }