/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Red+Hat+Display:wght@400;700;900&display=swap");


:root {
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(49, 100%, 41%);
    --first-color-light: hsl(49, 100%, 61%);
    --first-color-alt: 	hsl(49, 82%, 30%);
    --first-color-dark: hsl(48, 82%, 20%);
    --first-color-gray: hsl(79, 6%, 64%);
    --title-color: hsl(180, 4%, 98%);
    --title-color-black: hsl(180, 4%, 12%);
    --text-color: hsl(180, 4%, 72%);
    --text-color-light: hsl(180, 4%, 65%);
    --body-color: hsl(180, 12%, 8%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: 'Red Hat Display', sans-serif;
    --second-font: 'Kaushan Script', cursive;
    --biggest-font-size: 2rem;
    --bigger-font-size: 1.5rem;
    --big-font-size: 1.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--body-font);
}

/*body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
}*/

section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: url('../assets/img/gym.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

.login__box {
    position: relative;
    width: 400px;
    height: 530px;
    background: hsla(0, 100%, 0%, 0.3);
    border: 2px solid var(--first-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .7s;
    backdrop-filter: blur(15px);
}



h2 {
    font-size: 2.2rem;
    color: var(--first-color-light);
    text-align: center;
}

img {
    width: 150px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.input__box {
    position: relative;
    width: 310px;
    margin: 30px 0;
    border-bottom: 2px solid var(--first-color);
}

.input__box label {
    position: absolute;
    top: 50%;
    left: 5px;
    font-weight: 600;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--first-color-light);
    pointer-events: none;
    transition: .5s;
}

/*.input__box input:focus~label {
    top: -5px;
}*/


.input__box input::placeholder {
    color: var(--first-color-light);
}

.input__box input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #fff;
    padding: 0 35px 0 5px;
}

.input__box .icon {
    position: absolute;
    right: 8px;
    color: var(--first-color-light);
    font-size: 1.2rem;
    line-height: 57px;
}

.remember__forgot {
    margin: -15px 0 15px;
    font-size: .9rem;
    color: #fff;
    display: flex;
    justify-content: center;
}

.remember__forgot label input {
    margin-right: 3px;
}

.remember__forgot a {
    color: var(--first-color-light);
    text-decoration: none;
    text-align: center;
}

.remember__forgot a:hover {
    text-decoration: underline;
}

button {
    width: 100%;
    height: 40px;
    background: var(--first-color);
    border: 2px solid var(--first-color-dark);
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--first-color-dark);
    font-weight: 600;
}

button:hover {
    transition: .3s;
    background: var(--first-color-dark);
    color: var(--first-color-light);
    font-weight: 600;
    font-size: 1.3rem;
}

.register__link {
    font-size: 1rem;
    color: var(--first-color-light);
    text-align: center;
    margin: 25px 0 10px;
    font-weight: 600;
}

.register__link p a {
    color: var(--first-color-light);
    text-decoration: none;
    font-weight: 600;
}

.register__link p a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 360px) {
    .login__box {
        width: 95%;
        height: 75vh;
        border: none;
        border-radius: 0;
    }

    .input__box {
        width: 290px;
    }
}

/* Caps Lock Warning Styles */
.caps-lock-warning {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-dark));
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px hsla(49, 100%, 41%, 0.4);
    z-index: 10;
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.caps-lock-warning ion-icon {
    margin-right: 6px;
    font-size: 1rem;
    color: #ffffff;
    animation: pulse 1.5s infinite;
}

.caps-lock-warning * {
    color: #ffffff !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Adjust input box to accommodate warning */
.input__box {
    position: relative;
    margin-bottom: 45px; /* Extra space for warning below input */
}

/* 12:53 on video */