/* 
    Project: Styles for Login Page
    Description: Defines the styles for a simple and responsive login page.
    Components:
    - Body: Basic settings and alignment of content.
    - Section: Styling of the main container for the login form.
    - Sign-in Container: Styling of the login form, including layout and appearance of fields.
    - Links: Styling for links within the form.
    - Hover State: Visual effects when hovering over links and the submit button.
    - Responsiveness: Style adjustments for smaller screens.
    ========================================================================================================

    Author: Alan S.
    GitHub: [Your GitHub URL]
    Creation Date: YYYY-MM-DD
*/



/* Eric Meyer's Reset CSS v2.0 - http://meyerweb.com/eric/tools/css/reset/ 
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}


ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Text Shadow */
p,
h1,
h2,
h3,
h4,
h5,
h6,
a {
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}


/* Basic body settings - OK */
body {
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Cyberpunk Is Not Dead', sans-serif;
    background: #000000;

}


/* Background Animated  */
section span {
    position: relative;
    display: block;
    background: #1e1f1c;
    width: calc(6.25vw - 2px);
    height: calc(6.25vw - 2px);
    z-index: 1;
}


/* Basic section settings */
section {
    flex-wrap: wrap;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    gap: 2px;
    overflow: hidden;
    /* Garante que o conteúdo do fundo não transborde */
}

/* Sign-in container styling */
section .signin {
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    border-radius: 6px;
    box-shadow: 0 15px 30px rgba(0, 255, 0, 0.575);
    background: #333;
    width: 400px;
}

/* Border letters */

/* Content inside the sign-in container */
section .signin .content {
    display: flex;
    width: 90%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

/* Title styling */
section .signin .content h2 {
    font-size: 2em;
    color: #85FF00;
    text-transform: uppercase;
    margin: 16px;
    font-weight: 600;
}

/* Form styling */
section .signin .content .form {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

section .signin .content .inputBx {
    position: relative;
    width: 100%;
}

.inputBx input[type="text"],
.inputBx input[type="password"],
.inputBx input[type="submit"] {
    position: relative;
    background: #454545;
    width: 100%;
    padding: 8px;

    border: none;
    outline: none;
    border-radius: 4px;
    box-sizing: border-box;
    font-weight: 500;
    font-size: 1rem;
    color: #fefefa;
    caret-color: #85FF00;
    transition: border-color 0.3s, box-shadow 0.3s;

}

.inputBx input:focus {
    outline: 2px solid #85FF00;
    outline-offset: 2px;
    background: #383838;


}


/* Label styling */
.inputBx label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    transition: 0.3s;
    pointer-events: none;
    color: #f6f6f6be;
    font-size: 1rem;

}

/* remove default password reveal icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/*password reveal icon */
.inputBx i.toggle-password {
    display: flex;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #fefefa;
    text-shadow: 0 0 5px #000000;
    /* Adiciona um contorno ao redor do ícone */
}



/* Placeholder styling */
.inputBx input::placeholder {
    color: #f6f6f6b2;
}

/* Label styling when input is focused or filled */
.inputBx input:focus+label,
.inputBx input:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    color: #85FF00;
    font-size: 1rem;
    font-weight: 500;
}

/* Label styling when input is valid */
section .signin .content .form .inputBx input:focus~label,
section .signin .content .form .inputBx input:valid~label {
    transform: translateY(-18.5px);
    left: -1.5px;
    color: #85FF00;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* Link styling */
.links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Styling for all links */
.links a {
    color: #f6f6f6;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

.links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #85FF00;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.links a:hover::before,
.links a:focus::before {
    transform: translateX(0);
}

.links a:hover,
.links a:focus {
    color: #85FF00;
}

/* Styling for the second link */
.links a:nth-child(2) {
    color: #85FF00;
    font-weight: 600;
}

/* Submit button styling */
.signin .content .form .inputBx input[type="submit"] {
    background: #85FF00;
    color: #111;
    font-weight: 600;
    padding: 10px 20px;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 40px;
    font-family: 'Cyberpunk Is Not Dead', sans-serif;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.signin .content .form .inputBx input[type="submit"]:hover {
    background: #74e600;
}

.signin .content .form .inputBx input[type="submit"]:active {
    background: #6fdd00;
}

/* Error message styling */
.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}




/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        overflow: hidden;
    }

    .inputBx i.toggle-password {
        display: flex;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #fefefa;
    }


    section .signin {
        width: 90%;
        padding: 16px;
        margin: 0 auto;
        box-sizing: border-box;
    }



    .links a {
        justify-content: space-around;
        margin-left: 2%;
        font-size: 0.8rem;
    }

    /* Input field icon - SELECT */

    section .signin .content .form .inputBx input:focus~label,
    section .signin .content .form .inputBx input:valid~label {
        transform: translateY(-18.5px);
        left: 6.5px;
        color: #85FF00;
    }

    /* Input field icon - RETURN */
    section .signin .content .form .inputBx input:not(:focus):not(:valid)~label {
        position: absolute;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        color: #f6f6f6b2;

    }



    .inputBx label {
        left: 30px;
    }

    .signin .content .form {
        gap: 20px;
    }

    .signin .content .form .inputBx input[type="submit"] {
        font-size: 0.9rem;
        padding: 8px 16px;
    }


}

@media (max-width: 400px) {
    section .signin {
        width: 90%;
        padding: 16px;
        margin: 0 auto;
        box-sizing: border-box;
    }



    .inputBx i.toggle-password {
        display: flex;
        position: absolute;
        right: 10px;
        top: center;
        transform: translateY(-50%);
        cursor: pointer;
        color: #fefefa;
    }


    .links a {
        justify-content: space-around;
        margin-left: 2%;
        font-size: 0.8rem;
    }

    .inputBx label {
        left: 30px;
    }



    .signin .content .form {
        gap: 20px;
    }

}


/* Media query for large screens
@media (min-width: 1200px) {
    section .signin {
        width: 50%;
        padding: 40px;
    }

    .signin .content {
        width: 80%;
        gap: 50px;
    }

    .signin .content .form .inputBx input[type="submit"] {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .inputBx input {
        font-size: 1.1rem;
    }

    .links a {
        font-size: 1.1rem;
    }

    section .signin .content h2 {
        font-size: 2.5em;
    }
}