@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.bg-login {
    background-color: #050505;
    background-image:
        radial-gradient(ellipse at 10% 40%, rgba(255, 106, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 60%, rgba(255, 140, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 80, 0, 0.04) 0%, transparent 40%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bg-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.03) 0%, transparent 60%);
    animation: bgPulse 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.bg-login::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.03) 0%, transparent 60%);
    animation: bgPulse 15s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

@keyframes bgPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.08), transparent 70%);
    pointer-events: none;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff5f00 0%, #ff8c00 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 0 30px rgba(255, 106, 0, 0.35);
    font-size: 1.6rem;
}

.brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.4rem;
    color: #fff;
}

.brand-name span {
    color: #ff6a00;
}

h2, .form-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.subtitle {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
    margin-bottom: 1.8rem;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.45rem;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    border-radius: 0.75rem;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #ff6a00;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.toggle-senha {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
}

.toggle-senha:hover {
    color: rgba(255, 255, 255, 0.5);
    background: none;
    transform: translateY(-50%);
}

.hint {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    margin-top: 0.35rem;
}

.btn-submit {
    background: linear-gradient(135deg, #ff5f00 0%, #ff8c00 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    border: none;
    margin-top: 0.3rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(255, 106, 0, 0.45);
    filter: brightness(1.1);
    background: linear-gradient(135deg, #ff5f00 0%, #ff8c00 100%);
}

.links {
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.links p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.links a {
    color: #ff6a00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.links a:hover {
    color: #ff8c00;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.82rem;
}

.back-link a {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link a:hover {
    color: rgba(255, 255, 255, 0.5);
}

.erro {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.side-text {
    display: none;
}

@media screen and (min-width: 1024px) {
    .side-text {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    .side-text h1 {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 4.2rem;
        font-weight: 800;
        line-height: 1.15;
        background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .side-text h1 span {
        background: linear-gradient(135deg, #ff6a00, #ff8c00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

@keyframes blurFadeIn {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes fadeInBlur {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.animate-blur-fade-in {
    animation: blurFadeIn 0.7s ease-out forwards;
}

.animate-fade-in-blur {
    animation: fadeInBlur 0.9s ease-out 0.15s forwards;
    opacity: 0;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    margin-top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.step-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.4rem;
}

.step-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.step-bar-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, #ff5f00, #ff8c00);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.wizard-step {
    display: none !important;
    flex-direction: column;
    gap: 1rem;
    animation: stepIn 0.35s ease-out forwards;
}

.wizard-step.active {
    display: flex !important;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ff8c00;
    margin: 0 auto 0.2rem;
}

.step-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
}

.step-desc {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.step-hint {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    margin-top: 0.3rem;
}

.step-buttons {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.btn-back {
    width: 48px;
    min-width: 48px;
    height: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

.step-buttons .btn-submit {
    flex: 1;
    margin-top: 0;
}

.btn-final {
    background: linear-gradient(135deg, #ff5f00 0%, #ff8c00 50%, #ffb347 100%) !important;
}

.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pw-bar {
    display: flex;
    gap: 4px;
    flex: 1;
}

.pw-bar span {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.pw-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    min-width: 65px;
    text-align: right;
}

.match-indicator {
    font-size: 0.78rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.match-ok {
    color: #22c55e;
}

.match-err {
    color: #ef4444;
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.shake {
    animation: shakeAnim 0.5s ease;
}
