@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* BACKGROUND */
body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: url('../photos/bg.jpeg') no-repeat;
    background-size: cover;
    background-position: center;
}

/* MAIN LAYOUT */
.login-layout {
    width: 100%;
    padding: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;

    flex-wrap: wrap;
}

/* LMS LOGO */
.logofolder {
    display: flex;
    justify-content: center;
}

.lmslogo {
    width: clamp(300px, 40vw, 520px);
    max-width: 100%;
    height: auto;
}

/* FORM BOX */
.wrapper {
    max-width: 460px;
    width: 100%;

    background: rgba(255, 254, 254, 0.65);
    border: 2px solid rgba(225, 225, 225, 0.48);

    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0,0,0,.2);

    border-radius: 6px;
    padding: 30px 22px;

    text-align: center;
}

/* SMALL LOGO */
.wrapper .logo {
    width: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
}

/* TITLES */
.wrapper h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* INPUTS */
.input-box {
    position: relative;
    margin: 25px 0;
}

.input-box input {
    width: 100%;
    height: 42px;

    background: transparent;

    border: 2px solid #000;
    border-radius: 10px;

    outline: none;

    padding: 0 45px 0 18px;
    font-size: 15px;
}

.input-box i {
    position: absolute;
    right: 15px;
    top: 50%;

    transform: translateY(-50%);
    font-size: 20px;

    cursor: pointer;
}

/* BUTTON */
.btn {
    width: 100%;
    height: 45px;

    background: rgb(27, 71, 23);

    border: none;
    border-radius: 40px;

    cursor: pointer;

    font-size: 16px;
    font-weight: 600;
    color: white;
}

.btn:hover {
    background: rgba(72, 229, 119, 0.85);
    color: #000;
}

/* LINKS + INFO */
.login-link,
.resend-info {
    font-size: 14px;
    margin: 18px 0;
}

.login-link a,
.resend-info a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover,
.resend-info a:hover {
    text-decoration: underline;
}

/* ALERTS */
.custom-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.custom-message.success {
    background: #d4edda;
    color: #155724;
}

.custom-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* PASSWORD STRENGTH */
.password-strength {
    height: 5px;
    background: #eee;
    border-radius: 5px;
    margin-top: 10px;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: 0.3s;
}

.strength-text {
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
}

/* MOBILE */
@media (max-width: 768px) {

    .login-layout {
        flex-direction: column;
    }

    .lmslogo {
        width: 260px;
    }
}

@media (max-width: 480px) {

    .wrapper {
        padding: 20px;
    }
}