* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('../images/login-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
}

.login-box {
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-success {
    color: #00ffcc; /* Bright teal for success */
    background: linear-gradient(45deg, rgba(0, 255, 204, 0.2), rgba(0, 179, 143, 0.2));
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #00ffcc;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
    animation: popIn 0.5s ease-in-out;
}

.flash-danger {
    color: #ff6b6b;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(179, 0, 0, 0.2));
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ff6b6b;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    animation: popIn 0.5s ease-in-out;
}

.flash-info {
    color: #ffcc00; /* Vibrant yellow for logout */
    background: linear-gradient(45deg, rgba(255, 204, 0, 0.2), rgba(179, 143, 0, 0.2));
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ffcc00;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
    animation: popIn 0.5s ease-in-out;
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.input-group {
    position: relative;
    margin: 20px 0;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ddeb;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.input-group .toggle-password {
    right: 15px;
    left: auto;
    cursor: pointer;
    color: #ff8e53;
}

.input-group .toggle-password:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.input-group:hover i:not(.toggle-password) {
    color: #ff6b6b;
    transform: translateY(-50%) scale(1.1);
}

input {
    width: 100%;
    padding: 14px 45px;
    border: 2px solid #00ddeb;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(30, 30, 40, 0.8);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: opacity 0.3s ease;
}

input:focus, input:hover {
    border-color: #ff6b6b;
    background: rgba(40, 40, 50, 0.9);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
    outline: none;
}

input:focus::placeholder {
    opacity: 0;
}

button {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #00ddeb, #007bff);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #007bff, #00ddeb);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5);
}

.btn-secondary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #ff8e53, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
}

.btn-google {
    background: #ffffff;
    color: #4285f4;
    border: 1px solid #4285f4;
}

.btn-google:hover {
    background: #4285f4;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.5);
}

.button-group {
    margin-top: 20px;
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    h2 {
        font-size: 24px;
    }
    input {
        padding: 12px 40px;
        font-size: 14px;
    }
    button {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .login-box {
        padding: 20px 15px;
    }
}