@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    height: 100%;
}

/* ================= BODY FLEX ================= */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url("../img/fundovazio.png") no-repeat center center;
    background-size: cover;
}

/* ================= HEADER ================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

.logo img {
    width: 100px;
}

.navigation a {
    position: relative;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 5px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

.navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ================= PAGE CONTENT ================= */

.page-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 70px; /* antes 120 - sobe o container */
}

/* ================= CONTAINER ================= */

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px; /* antes 60 */
    padding: 60px; /* antes 50 */

    background: rgba(0, 40, 120, 0.45);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.25);

    backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* ================= WRAPPER LOGIN ================= */

.wrapper {
    width: 450px;
    height: 415px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;

    backdrop-filter: blur(12px);
    overflow: hidden;

    box-shadow: 0 20px 40px rgba(0,0,0,0.4);

    transition: height .3s ease;
}

.wrapper.active {
    height: 520px;
}

.wrapper .form-box {
    position: absolute;
    width: 100%;
    padding: 50px;
}

.wrapper .form-box h1 {
    font-size: 30px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

/* ================= INPUT ================= */

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 20px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 15px 45px 15px 20px;
    outline: none;
    transition: .3s;
}

.input-box input:focus {
    border-color: #4da6ff;
    box-shadow: 0 0 10px rgba(77,166,255,0.5);
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

.wrapper input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* ================= REMEMBER ================= */

.remember-forgot {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 10px 0 20px;
    color: #fff;
}

.remember-forgot a {
    color: #fff;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

/* ================= BUTTON ================= */

.btn {
    width: 100%;
    height: 45px;
    background: linear-gradient(90deg,#4da6ff,#1885df);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ================= LINKS ================= */

.register-link,
.login-register {
    text-align: center;
    margin-top: 15px;
    color: #fff;
    font-size: 13px;
}

.register-link a,
.login-register a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover,
.login-register a:hover {
    text-decoration: underline;
}

/* ================= IMAGE SIDE ================= */

.form-image {
    width: 450px;   /* agora igual ao wrapper */
    height: 415px;  /* igual ao wrapper */
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
}

.form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= FOOTER ================= */

.footer {
    width: 100%;
    padding: 20px 0;
    background: rgba(0, 30, 80, 0.95);
    color: #fff;
    text-align: center;
    font-size: 14px;
}

/* ================= RESPONSIVO ================= */

@media (max-width: 900px) {

    header {
        padding: 20px;
    }

    .navigation a {
        margin-left: 20px;
    }

    .container {
        flex-direction: column;
        gap: 30px;
        padding: 40px;
    }

    .form-image {
        display: none;
    }

    .wrapper {
        width: 100%;
        max-width: 400px;
    }
}