/* Reset & Font */
body {
    margin: 0;
    padding: 0;
    font-family: "Georgia", serif;
    background: url("../../brinth_icons/signupin.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #f2e4da;
    overflow-x: hidden;
}

@font-face {
    font-family: "Vampire Wars";
    src: url("../../brinth_styles/brinth_fonts/Vampire\ Wars.ttf") format("truetype");
}

/* Login Heading */
.login-heading {
    position: absolute;
    top: 100px;
    left: 200px;
    font-family: "Vampire Wars", cursive;
    font-size: 90px;
    color: #d6a78a;
    text-shadow: 0 0 10px #1a1a1ad8;
    line-height: 1.1;
    z-index: 10;
    letter-spacing: 2px;
}

/* Main Container */
.container {
    display: flex;
    justify-content: flex-end;
    align-items: start;
    padding: 50px;
    height: 100vh;
}

/* Login Form */
.login-form {
    position: absolute;
    top: 200px;
    /* Increase this to move it further down */
    right: 220px;
    /* Increase this to move it further left */
    background-color: #000000;
    padding: 50px 30px;
    border: 1px solid #5c3d2e;
    border-radius: 20px;
    box-shadow: 0 0 15px #5c3d2e;
    animation: border-glow 1ms infinite alternate;
    width: 400px;
}


.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #d6b8a1;
    font-size: 35px;
}

.login-form input,
.login-form button {
    width: 70%;
    margin: 0 auto 20px auto;
    display: block;
    padding: 15px 14px;
    border: 1px solid #5c3d2e;
    background-color: #2a1a14;
    color: #f2e4da;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.login-form input::placeholder {
    color: #bba598;
}

.login-form input:focus {
    border-color: #a68576;
    box-shadow: 0 0 10px #a68576;
    outline: none;
}

.login-form button {
    background: linear-gradient(to right, #a68576, #7c4e3b);
    font-weight: bold;
    cursor: pointer;
    color: #fff;
}

.login-form button:hover {
    box-shadow: 0 0 12px #d6b8a1;
}

/* Animations */
@keyframes border-glow {
    0% {
        box-shadow: 0 0 12px #a68576aa, 0 0 24px #a6857644;
    }

    100% {
        box-shadow: 0 0 12px #a68576aa, 0 0 24px #a6857644;
    }
}

.brinth-logo-floating {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.brinth-logo-floating img {
    width: 45px;
    height: auto;
    filter: drop-shadow(0 0 4px #d6a78a);
    transition: transform 0.3s ease;
}

.brinth-logo-floating img:hover {
    transform: scale(1.2);
}

.modal-content {
    background-color: #000000;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 0 25px #5c3d2e;
    width: 350px;
    border: 1px solid #5c3d2e;
}

.modal-content h2 {
    color: #d6b8a1;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: 90%;
    padding: 12px;
    margin: 10px auto;
    border: 1px solid #7c4e3b;
    border-radius: 25px;
    background-color: #2a1a14;
    color: #f2e4da;
    display: block;
    font-size: 16px;
    transition: 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #a68576;
    box-shadow: 0 0 10px #a68576;
}

.modal-content button {
    width: 90%;
    padding: 12px;
    background: linear-gradient(to right, #a68576, #7c4e3b);
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    margin-top: 15px;
}

.modal-content button:hover {
    box-shadow: 0 0 12px #d6b8a1;
}

.modal-content a {
    font-family: 'Georgia', serif;
}


/* Incorrect Password Popup */
.login-error-popup {
    background: #0a3e42;
    color: #fff;
    padding: 10px 20px;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15%;
    font-size: 0.9em;
    z-index: 1000;
    box-shadow: 0 0 10px #1e6f7a;
    animation: fadeIn 0.5s ease-in-out;
}

/* Forgot Password Link */
.forgot-link {
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    text-align: right;
    color: #88bbee;
    cursor: pointer;
    text-decoration: underline;
}

/* Forgot Password Modal */
.forgot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Forgot Password Box */
.forgot-box {
    background: #111;
    padding: 25px 30px;
    border-radius: 20px;
    width: 320px;
    text-align: center;
    box-shadow: 0 0 15px rgb(51, 85, 79);
}

.forgot-box input {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #555;
    background: #222;
    color: #fff;
}

.forgot-box button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, #0a4042, #195a55);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.forgot-box button:hover {
    background: linear-gradient(to right, #14676a, #25577a);
}

@media (max-width: 768px) {
    .login-heading {
    position: absolute;
    top: 0; /* move it to top of form container */
    left: 50%; /* center horizontally */
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    font-size: 50px;
    margin-top: 50px;
    }
    

    .container {
        justify-content: center;
        align-items: center;
        padding: 0;
        flex-direction: column;
    }

    .login-form {
        position: static;
        margin: 0 auto;
        width: 90%;
        max-width: 400px;
        padding: 40px 20px;
        box-shadow: 0 0 20px #5c3d2e;
        
    }

    .brinth-logo-floating {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 30px;
    }

    .brinth-logo-floating img {
        display: block;
        margin: 0 auto 20px auto;
        width: 60px;
    }

    .footer-top,
    .footer-bottom {
        padding: 10px 20px;
    }
}