/* ✅ Full-page background with blur */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://images.unsplash.com/photo-1571260899304-425eee4c7efc?auto=format&fit=crop&w=1350&q=80') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ✅ Center the container */
#auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    /* height of navbar */
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* ✅ Login/Register/Forgot Box */
.container {
    width: 350px;
    background: rgba(255, 255, 255, 0.25);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: auto;
    /* ✅ Ensures center alignment */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(5px) brightness(0.8);
    z-index: -1;
}

/* ✅ Inputs */
.container input {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
}

/* ✅ Buttons */
button {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* ✅ Link Buttons */
.link-btn {
    background: none;
    color: #2c7be5;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

/* ✅ Password eye icon */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

.contact-container {
    position: relative;
    max-width: 600px;
    margin: 80px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.div-border {
    background-color: whitesmoke;
    margin-top: 85px;
    height: 100px;
    color: blue;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
    /* border: 3px solid #0f3a7a; */
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.div-border:hover {
    transform: scale(1.05);
    background-color: #2c7be5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.div-border a {
    color: #2c7be5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

.div-border a:hover {
    color: blue;
    text-decoration: underline;
    animation: glow 1s ease-in-out infinite alternate;
}

textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

/* Stylish Google Button */
#googleLoginBtn {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    background: linear-gradient(45deg, #db4437, #ff6f61);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(219, 68, 55, 0.4);
}

/* Hover animation with glow */
#googleLoginBtn:hover {
    background: linear-gradient(45deg, #ff6f61, #db4437);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(219, 68, 55, 0.6);
}

/* Click animation */
#googleLoginBtn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(219, 68, 55, 0.4);
}

/* Pulse animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 8px rgba(219, 68, 55, 0.6);
    }

    50% {
        box-shadow: 0 0 18px rgba(219, 68, 55, 0.8);
    }

    100% {
        box-shadow: 0 0 8px rgba(219, 68, 55, 0.6);
    }
}

#googleLoginBtn {
    animation: pulseGlow 1.8s infinite;
}


#g_id_onload,
.g_id_signin {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Overlay */
/* Overlay */
#customAlert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: flex;
    /* ✅ Use flex to center content */
}

/* Alert Box */
#customAlert .alert-box {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    width: 300px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: popUp 0.3s ease;
}

/* Alert Types */
.alert-success .alert-box {
    border-left: 6px solid #28a745;
}

.alert-error .alert-box {
    border-left: 6px solid #dc3545;
}

.alert-warning .alert-box {
    border-left: 6px solid #ffc107;
}

.alert-info .alert-box {
    border-left: 6px solid #2c7be5;
}

/* Message */
#alertMessage {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Button */
#customAlert button {
    padding: 10px 20px;
    background: #2c7be5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#customAlert button:hover {
    background: #1a5fc3;
}

/* Animation */
@keyframes popUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}