/* Add this at the top of your CSS file */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #F1C8C8 0%, #EED47A 50%, #F1C8C8 100%);
    background-size: auto 400%;
    animation: gradient-animation 10s linear infinite;
    color: var(--black, #000);
}

@keyframes gradient-animation {
    0% {
        background-position: center top;
    }
    100% {
        background-position: center bottom;
    }
}

.back-button {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(123, 91, 89, 0.1);
    border: 1px solid #7B5B59;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    transform: scaleX(-1); /* Flip horizontally */
}

.back-button:hover {
    background: rgba(123, 91, 89, 0.2);
}

.back-button svg {
    width: 29px;
    height: 29px;
}

.back-button svg path {
    stroke: #7B5B59;
}

/* Login Frame */
.login-frame {
    width: 742px;
    border: 1px solid #7B5B59;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.login-title {
    color: #000;
    font-size: 40px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: 2px;
    margin: 0;
    margin-bottom: 50px;
}

.input-group {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
}

.input-label {
    position: absolute;
    top: -25px;
    left: 10px;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: 2px;
}

.input-field {
    width: 100%;
    height: 80px;
    border: 1px solid #7B5B59;
    font-size: 25px;
    font-weight: 500;
    line-height: 25px;
    letter-spacing: 2px;
    padding-left: 25px;
    box-sizing: border-box;
    color: #000;
    background: transparent;
}

.password-container {
    position: relative;
    width: 100%;
}

.eye-button {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
}

.eye-button svg {
    width: 31.75px;
    height: 25.4px;
    fill: #7B5B59;
}

.login-button {
    width: 100%;
    height: 80px;
    border: 1px solid #7B5B59;
    background: #000;
    color: #FFF;
    font-size: 30px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 2px;
    cursor: pointer;
    text-align: center;
    outline: none;
    flex-shrink: 0;
    margin-bottom: 30px;
}

.login-button:hover {
    background: #333;
}

/* Centering the Forgot Password Link */
.forgot-password {
    color: #000;
    font-size: 15px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: 2px;
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.forgot-password:hover {
    color: #7B5B59;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .login-frame {
        width: 90%;
        padding: 40px 30px;
    }

    .login-title {
        font-size: 30px;
        line-height: 30px;
        margin-bottom: 40px;
    }

    .input-field {
        height: 60px;
        font-size: 20px;
        line-height: 20px;
        padding-left: 20px;
    }

    .input-label {
        top: -20px;
        font-size: 13px;
        line-height: 13px;
    }

    .eye-button svg {
        width: 25px;
        height: 20px;
    }

    .login-button {
        height: 60px;
        font-size: 25px;
        line-height: 25px;
        margin-bottom: 25px;
    }

    .forgot-password {
        font-size: 13px;
        line-height: 13px;
    }

    .back-button {
        width: 45px;
        height: 45px;
        bottom: 30px;
        left: 30px;
    }

    .back-button svg {
        width: 24px;
        height: 24px;
    }
}

@media screen and (max-width: 480px) {
    .login-title {
        font-size: 24px;
        line-height: 24px;
    }

    .input-field {
        height: 50px;
        font-size: 18px;
        line-height: 18px;
        padding-left: 15px;
    }

    .input-label {
        top: -15px;
        font-size: 12px;
        line-height: 12px;
    }

    .eye-button svg {
        width: 20px;
        height: 16px;
    }

    .login-button {
        height: 50px;
        font-size: 20px;
        line-height: 20px;
        margin-bottom: 20px;
    }

    .forgot-password {
        font-size: 12px;
        line-height: 12px;
    }

    .back-button {
        width: 40px;
        height: 40px;
        bottom: 20px;
        left: 20px;
    }

    .back-button svg {
        width: 20px;
        height: 20px;
    }
}
