﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    width: 100%;
    min-height: 100dvh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.login-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    height: auto;
    padding: 2.5rem;
    background: rgba(50, 50, 50, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 63, 65, 0.7);
    border-radius: 15px;
    z-index: -1;
}

.login-logo {
    position: relative;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    z-index: 2;
}

.title-text {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #E3CAA5; /*Modern Beige*/
    text-align: center;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
}

    .input-container input {
        width: 100%;
        padding-left: 30px;
        padding-right: 40px;
        border: none;
        outline: none;
        font-size: 16px;
    }

        .input-container input:focus {
            outline: none;
            box-shadow: none;
            border: none;
        }

.toggle-password {
    right: 12px;
    left: auto;
    cursor: pointer;
    font-size: 18px;
    color: #888;
}

.input-box {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

    .input-box .icon {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
    }

    .input-box input.form-control {
        width: 100%;
        padding: 10px 10px 10px 40px;
        box-sizing: border-box;
        height: 40px;
    }

    .input-box label {
        position: absolute;
        top: -20px;
        left: 40px;
        font-size: 14px;
        color: #666;
        transition: 0.3s;
    }

    .input-box input.form-control:focus + label,
    .input-box input.form-control:not(:placeholder-shown) + label {
        top: -20px;
        font-size: 12px;
        color: #333;
    }

.remember-forgot {
    margin: -15px 0 15px;
    font-size: .9em;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

    .remember-forgot a {
        color: #fff;
        text-decoration: none;
    }

        .remember-forgot a:hover {
            text-decoration: underline;
        }

button {
    width: 100%;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    color: #000;
    font-weight: 500;
}

.register-link {
    font-size: .9em;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
}

    .register-link p a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }

        .register-link p a:hover {
            text-decoration: underline;
        }

@media screen and (max-width: 920px), screen and (max-height: 420px), screen and (orientation: landscape) and (max-width: 820px) {
    .wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        overflow-y: auto;
        min-height: 100dvh;
    }

    .login-box {
        width: 95vw;
        padding: 1rem;
        border-radius: 12px;
    }

    .login-logo {
        width: 60px;
    }

    .title-text {
        font-size: 1.1rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .input-container input {
        font-size: 0.95rem;
    }

    button {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 768px) {
    .login-box h4 {
        font-size: 1.2rem;
    }

    .login-box input,
    .login-box button {
        font-size: 0.9rem;
    }
}

@keyframes animateBg {
    100% {
        filter: hue-rotate(360deg);
    }
}
