/* styles.css */

/* Opcional: fontes parecidas */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600&display=swap");

:root {
    --color-primary: #1f4f8a;
    --color-border: #142336;
    --color-bg: #060c14;
    --color-card: #0a1220;
    --color-text: #e5eef9;
    --color-muted: #7f93ad;
    --color-input: #07101b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--color-text);
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(1200px 600px at 50% 0%, #111a27 0%, #060c14 60%, #050a12 100%);
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--color-card);
    border-radius: 22px;
    padding: 20px;
    width: clamp(300px, 85vw, 500px);
    box-shadow: 0 18px 60px rgba(3, 10, 20, 0.65);
}

/* Hero + form em 50/50 quando virar row */
.hero,
form {
    flex: 1 1 50%;
}

/* Login JS helpers */
#errorAlert {
    background: #3b1220;
    border: 1px solid #5b1b2e;
    color: #f6c3cf;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field > input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    height: 32px;
    width: 32px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: rgba(229, 238, 249, 0.8);
    color: #2b3e55;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.toggle-password.is-active {
    border-color: #2a3f5c;
    color: #0a111a;
    background: #e5eef9;
}

.signup-link {
    margin: 6px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--color-muted);
}

.signup-link a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(229, 238, 249, 0.35);
}

.signup-link a:hover {
    border-bottom-color: rgba(229, 238, 249, 0.8);
}
.eye-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.eye-icon .eye-slash {
    opacity: 1;
}

.toggle-password.is-active .eye-slash {
    opacity: 0;
}
h3,
p {
    font-weight: 500;
    margin: 0;
}

.hero {
    background: url("hero.svg");
    background-size: cover;
    border-radius: 16px;
    overflow: hidden;
    font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: inherit;
    padding: 40px 66px;
    height: 100%;
    min-height: 170px;
}

.hero h2 {
    font-size: 22px;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
}

.hero h3 {
    margin-top: 12px;
    font-size: 18px;
    color: #c6d3e6;
    display: none;
}

/* Form */
form {
    padding: 30px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form > img {
    height: 28px;
    margin-top: 0;
    margin-bottom: inherit;
}

form :is(h2, h3) {
    text-align: center;
}

form > h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

input::placeholder {
    color: var(--color-muted);
}

input {
    border: 1px solid var(--color-border);
    padding: 0 2.5vw;
    background: var(--color-input);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--color-input) inset;
    -webkit-text-fill-color: var(--color-text);
    caret-color: var(--color-text);
    transition: background-color 9999s ease-in-out 0s;
}

button,
input {
    height: 44px;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    outline-color: var(--color-primary);
}

button {
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: #091327;
}

.socials {
    display: flex;
    gap: 8px;
}

.extra-text {
    display: none;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0b1829;
    border-color: transparent;
    font-size: 15px;
}

.social-btn > img {
    height: 24px;
}

.social-btn:first-child > img {
    height: 20px;
}

.social-btn > p {
    color: var(--color-muted);
}

.or {
    position: relative;
    text-align: center;
    height: 24px;
}

.or::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 0;
    width: 100%;
    translate: 0 -50%;
    height: 1px;
    background: var(--color-border);
    opacity: 0.6;
}

.or::after {
    content: "Or";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: 1;
    background: var(--color-card);
    font-size: 12px;
    padding: 0 12px;
}

form > button[type="submit"] {
    color: #ffffff;
    background: var(--color-primary);
    border-color: transparent;
}

/* Breakpoints (equivalente ao post) */
@media (min-width: 485px) {
    .card {
        width: clamp(300px, 90vw, 740px);
    }

    form {
        padding-left: 50px;
        padding-right: 50px;
    }

    .hero-inner {
        padding-right: clamp(10px, 20vw, 60px);
    }

    .socials {
        flex-direction: column;
    }

    .extra-text {
        display: inline;
    }
}

@media (min-width: 640px) {
    .card {
        flex-direction: row;
        padding: 8px 0 8px 8px;
    }

    .hero-inner {
        justify-content: center;
        align-items: flex-start;
        padding: 0 36px;
    }

    .hero h3 {
        display: block;
    }

    form {
        padding: 30px;
    }
}
