@import url('footer.css');

/* Colors */
$primary: #11998e;
$secondary: #38ef7d;
$white: #fff;
$gray: #9b9b9b;

/* Full screen body with dark background */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    background-color: #222222;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

/* Matrix-style animated background */
#matrix {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background: black;
}

/* Center the login form */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
}

/* Metallic effect for the login box */
.login-box {
    background: linear-gradient(135deg, #3a3a3a, #5a5a5a);
    border: 2px solid #888;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.8);
    width: 350px;
    text-align: center;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
    background-blend-mode: overlay;
    position: relative;
}

/* Glow effect for the title */
.glow-text {
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Form Group for Input Fields */
.form__group {
    position: relative;
    padding: 15px 0 0;
    margin-top: 10px;
    width: 100%;
}

.form__field {
    font-family: inherit;
    width: 100%;
    border: 0;
    border-bottom: 2px solid #9b9b9b;
    outline: 0;
    font-size: 1.0rem;
    color: #ffffff;
    padding: 3px 0;
    background: transparent;
    transition: border-color 0.2s;

    &::placeholder {
        color: transparent;
    }

    &:placeholder-shown ~ .form__label {
        font-size: 1.0rem;
        cursor: text;
        top: 20px;
    }
}

.form__label {
    position: absolute;
    top: -8px;
    display: block;
    transition: 0.2s;
    font-size: 1.0rem;
    color: #9b9b9b;
}

.form__field:focus {
    ~ .form__label {
        font-size: 1.0rem;
        color: #11998e;
        font-weight: 700;
    }
    border-width: 3px;
    border-image: linear-gradient(to right, #11998e, #38ef7d);
    border-image-slice: 1;
}

/* Reset input */
.form__field {
    &:required,
    &:invalid {
        box-shadow: none;
    }
}

.btn-login {
    background-color: #0ff;
    border: none;
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.btn-login:hover {
    background-color: #00bfbf;
}

/* Loading icon overlay hidden by default */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2;
    display: none; /* Hidden by default */
}

.loading-overlay i {
    font-size: 3rem;
    color: #0ff;
    animation: rotate 1.5s linear infinite;
}

/* Rotate animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Smaller text, extra margin for input fields */
.form-control {
    font-size: 1.0rem;
    margin-bottom: 15px;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-10px);
    }
    40%, 80% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s ease; /* Adjust timing as necessary */
}