@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --koni-accent: #ffab4a;
    --koni-accent-soft: rgba(255, 171, 74, .15);
    --koni-panel: rgba(18, 19, 22, .96);
    --koni-muted: #a4a5ad;
}

.login-page, .login-page * { box-sizing: border-box; }
.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 28px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7f7f8;
    background-color: #101114;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
}
.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, .34);
    pointer-events: none;
}
.login-back {
    position: fixed;
    z-index: 2;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--koni-accent);
    background: rgba(12, 13, 15, .88);
    border: 1px solid rgba(255, 171, 74, .22);
    border-radius: 14px;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}
.login-back:hover { transform: translateX(-3px); background: #202126; }

#container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#login_form {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(100%, 430px);
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding: 31px 36px 25px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    background: var(--koni-panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .58), 0 0 35px rgba(255, 171, 74, .06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
#login_form::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 190px;
    top: -125px;
    left: calc(50% - 130px);
    border-radius: 50%;
    background: rgba(255, 171, 74, .13);
    filter: blur(55px);
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 1px; }
.login-brand-icon { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255, 171, 74, .24)); }
.login-brand span { color: #fff; font-size: 23px; font-weight: 800; letter-spacing: 3px; line-height: 1.1; }
.login-brand small { color: #8f9098; font-size: 8px; font-weight: 600; letter-spacing: 1.5px; }
#form_header { text-align: center; }
#form_header h1 { margin: 0; color: var(--koni-accent); font-size: 24px; font-weight: 700; }
#form_header p { margin: 5px 0 0; color: #b9bac1; font-size: 12px; }

#social_media { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; }
.social-login, .google-login-wrap { min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.social-login { gap: 9px; color: #fff; background: #5865f2; border: 1px solid rgba(255,255,255,.12); text-decoration: none; font-size: 13px; font-weight: 600; transition: transform .2s ease, filter .2s ease; }
.social-login:hover { transform: translateY(-2px); filter: brightness(1.1); }
#social_media img { width: 21px; height: 21px; object-fit: contain; }
.google-login-wrap { overflow: hidden; background: #fff; }
#google_button { width: 100%; min-width: 0; display: flex; justify-content: center; }
#google_button > div { max-width: 100%; }
#google_button iframe { max-width: 100% !important; }
.login-divider { display: flex; align-items: center; gap: 12px; color: #777983; font-size: 10px; white-space: nowrap; }
.login-divider::before, .login-divider::after { content: ''; height: 1px; flex: 1; background: rgba(255,255,255,.10); }

#inputs { display: flex; flex-direction: column; gap: 14px; }
.input-box { width: 100%; }
.input-box label { display: block; margin-bottom: 6px; color: #e6e6e9; font-size: 12px; font-weight: 500; }
.input-field { height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.045); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.input-field:focus-within { border-color: var(--koni-accent); background: rgba(255,171,74,.055); box-shadow: 0 0 0 3px rgba(255,171,74,.09); }
.input-field i { width: 16px; color: var(--koni-accent); font-size: 14px; text-align: center; }
.input-field input { width: 100%; min-width: 0; height: 100%; padding: 0; color: #fff; background: transparent; border: 0; outline: 0; font: 400 12px 'Poppins', sans-serif; }
.input-field input::placeholder { color: #777983; }
#forgot_password_container { display: flex; justify-content: flex-end; margin-top: -5px; }
#forgot_password { color: var(--koni-accent); font-size: 11px; text-decoration: none; transition: color .2s ease; }
#forgot_password:hover { color: #ffd09a; text-decoration: underline; }

.login-atmosphere { position: relative; height: 28px; margin: -4px 0 -5px; overflow: hidden; border-radius: 8px; background: linear-gradient(90deg, transparent, rgba(255,171,74,.045), transparent); }
.float-icon { position: absolute; color: var(--koni-accent); opacity: .42; animation: koni-float 4.8s ease-in-out infinite; }
.icon-one { left: 9%; top: 7px; font-size: 14px; animation-delay: -.4s; }
.icon-two { left: 30%; top: 8px; font-size: 12px; animation-delay: -2s; }
.icon-three { left: 53%; top: 6px; font-size: 15px; animation-delay: -1.2s; }
.icon-four { left: 75%; top: 7px; font-size: 12px; animation-delay: -3s; }
.icon-five { left: 91%; top: 8px; font-size: 14px; animation-delay: -2.4s; }
@keyframes koni-float { 0%,100% { transform: translateY(3px) rotate(-5deg); opacity: .25; } 50% { transform: translateY(-5px) rotate(7deg); opacity: .72; } }
#login_button { width: 100%; min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #17120c; background: linear-gradient(135deg, #ffc477, #ffab4a 55%, #f3942f); border: 0; border-radius: 10px; box-shadow: 0 7px 20px rgba(255,171,74,.17); cursor: pointer; font: 700 13px 'Poppins', sans-serif; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
#login_button:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 10px 25px rgba(255,171,74,.25); }
#login_button:active { transform: translateY(0); }
.login-privacy { margin: -3px 0 0; color: #777983; text-align: center; font-size: 9px; }
.login-privacy i { margin-right: 4px; color: var(--koni-accent); }
#login_message { margin: 0; color: #ffbf80; text-align: center; font-size: 11px; overflow-wrap: anywhere; }

@media (max-width: 480px) {
    .login-page { padding: 68px 14px 22px; background-attachment: scroll; }
    #login_form { width: 100%; padding: 26px 22px 21px; gap: 16px; border-radius: 17px; }
    #form_header h1 { font-size: 21px; }
    #social_media { gap: 8px; }
    .social-login { gap: 6px; font-size: 12px; }
    .google-login-wrap { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.auth-mode-toggle{margin:0;color:#a4a5ad;text-align:center;font-size:11px}
.auth-mode-toggle button{padding:0 0 0 4px;color:#ffab4a;background:none;border:0;cursor:pointer;font:600 11px 'Poppins',sans-serif}
.auth-mode-toggle button:hover{text-decoration:underline;color:#ffd09a}
#login_button:disabled{opacity:.65;cursor:wait}
[hidden]{display:none!important}


/* Alternância entre entrar e criar conta */
#inputs .name-field[hidden] { display: none !important; }
.auth-mode-toggle {
    margin: -2px 0 0;
    color: #a4a5ad;
    text-align: center;
    font-size: 11px;
}
.auth-mode-toggle button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--koni-accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.auth-mode-toggle button:hover { color: #ffd09a; text-decoration: underline; }
#login_message {
    min-height: 16px;
    margin: 0;
    color: #ffbd78;
    text-align: center;
    font-size: 11px;
    overflow-wrap: anywhere;
}
