
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --background: #100b1d;
    --card: #1c1530;
    --primary: #8959f5;
    --primary-hover: #7545e4;
    --text: #f7f5ff;
    --muted: #a79bbd;
    --border: #3a2d52;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background:
            radial-gradient(ellipse at 50% 0%,
            #39205c 0%, transparent 55%),
            var(--background);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

.login-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 32px 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 70px #0005;
}

.brand {
    text-align: center;
    margin-bottom: 36px;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #a67aff, #6635db);
    border-radius: 17px;
    font-size: 34px;
    box-shadow: 0 8px 28px #8959f544;
}

.brand h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 27px;
    letter-spacing: -1px;
}

.brand h1 span {
    color: #a77dff;
}

.brand p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 49px;
    padding: 0 15px;
    background: #130e23;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #8959f522;
}

.form-group input::placeholder {
    color: #756a89;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 82px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #b79cf4;
    font-size: 12px;
    cursor: pointer;
}

.forgot-password {
    text-align: right;
    margin: -5px 0 26px;
}

.forgot-password a {
    color: #b79cf4;
    font-size: 13px;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    height: 49px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.submit-btn:hover {
    background: var(--primary-hover);
}

.submit-btn:active {
    transform: scale(.99);
}

.submit-btn:disabled {
    opacity: .65;
    cursor: wait;
}

.message {
    color: #ff9baf;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
}

.message:empty {
    display: none;
}

.login-footer {
    margin-top: 35px;
    text-align: center;
    color: #786c90;
    font-size: 11px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 22px 24px;
    }

    .brand h1 {
        font-size: 25px;
    }
}

/* Recuperação de senha */

.recovery-title {
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

.recovery-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 25px;
}

.recovery-back {
    text-align: center;
    margin-top: 26px;
}

.recovery-back a {
    color: #b79cf4;
    font-size: 13px;
    text-decoration: none;
}

.recovery-back a:hover {
    text-decoration: underline;
}

.recovery-success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #263c32;
    border: 1px solid #3f7e5c;
    border-radius: 50%;
    color: #72e6a0;
    font-size: 30px;
}

[hidden] {
    display: none !important;
}
