@import url("style.css?v=20260802");

/* Shared layout for the login / cadastro / checkout cards */

body {
    align-items: center;
    background: var(--color-bg-alt);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    padding: 40px 32px;
    width: 100%;
}

.logo {
    font-size: 42px;
    margin-bottom: 12px;
    text-align: center;
}

.card h1,
.card h2 {
    color: var(--color-text);
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.card > p {
    color: var(--color-text-muted);
    font-size: .95rem;
    margin-bottom: 28px;
    text-align: center;
}

.input-group {
    margin-bottom: 18px;
}

label {
    color: var(--color-text);
    display: block;
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

input {
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    min-height: 48px;
    padding: 12px 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

input::placeholder {
    color: #9aa0ab;
}

input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .14);
    outline: none;
}

.card button {
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 6px;
    min-height: 48px;
    padding: 14px;
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
    width: 100%;
}

.card button:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card button:disabled {
    cursor: not-allowed;
    opacity: .6;
    transform: none;
}

.link {
    color: var(--color-text-muted);
    font-size: .9rem;
    margin-top: 24px;
    text-align: center;
}

.link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.link a:hover {
    text-decoration: underline;
}

/* Inline form feedback messages */
.form-msg {
    border-radius: var(--radius-sm);
    display: none;
    font-size: .875rem;
    margin-bottom: 14px;
    padding: 10px 14px;
}

.form-msg.error {
    background: var(--color-danger-soft);
    color: var(--color-danger);
}

.form-msg.success {
    background: #ecfdf3;
    color: var(--color-success);
}

.form-msg.warning {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

@media (max-width: 480px) {
    .card {
        border-radius: var(--radius);
        padding: 30px 22px;
    }
}
