:root {
    --primary: #448cf8;
    --primary-hover: #3a7bd5;
    --text-dark: #1a1a1a;
    --text-gray: #6c757d;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: 0.15s ease-in-out;
}

/* Base Styles */
body {
    background: var(--primary) !important;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* Utility Classes */
.flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

.w-full {
    width: 100%;
}

.max-w-30rem {
    max-width: 30rem;
}

.text-center {
    text-align: center;
}

.block {
    display: block;
}

/* Spacing */
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1rem; }
.py-5 { padding: 2rem 0; }
.px-3 { padding: 0 1rem; }
.p-3 { padding: 1rem; }

/* Typography */
.text-900 { color: var(--text-dark); }
.text-600 { color: var(--text-gray); }
.text-3xl { font-size: 1.75rem; }
.text-xxl { font-size: 1.25rem; }
.text-xl { font-size: 1.25rem; }
.text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }
.font-medium { font-weight: 500; }

/* Components */
.surface-ground-login {
    background: transparent !important;
}

.surface-card {
    background: var(--white);
    border-radius: var(--border-radius);
}

.input-group {
    position: relative;
}

.p-inputtext {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.p-inputtext:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(68, 140, 248, 0.25);
}

.p-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-size: 1.25rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition);
    cursor: pointer;
}

.p-button:hover {
    background: var(--primary-hover);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Logo */
.logo-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.logo-img {
    max-width: 120px;
    height: auto;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-gray);
}

/* Recovery form */
.recovery-form {
    display: none;
}

/* Buttons */
.retorna-login,
.forgot-password-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: none;
}

.retorna-login:hover,
.forgot-password-btn:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Footer */
.auth-footer {
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    color: var(--white);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.4;
}

.auth-footer a {
    color: var(--white);
    font-weight: 500;
}

.auth-footer.compact {
    padding: 0.5rem 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.footer-links a:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -0.5rem;
    color: var(--white);
}

/* Responsive */
@media (max-width: 576px) {
    .logo-img {
        max-width: 100px;
    }

    .text-3xl {
        font-size: 1.5rem;
    }

    .p-inputtext,
    .p-button {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

.retorna-login:hover,
.retorna-login:focus,
.retorna-login:active {
    background: transparent !important;
    color: #0d6efd !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.forgot-password-btn {
    display: inline-block;
    font-size: 0.875rem; /* mesmo que .text-sm */
    font-weight: 500;
    color: var(--primary);
    background: transparent;
    border: none;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    cursor: pointer;
}

.forgot-password-btn:hover,
.forgot-password-btn:focus,
.forgot-password-btn:active {
    background: transparent !important;
    color: #0d6efd !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.p-button {
    background-color: #3b82f6;
    color: white;
    border: none;
    transition: all 0.3s;
}
.p-button:hover {
    background-color: #2563eb;
}
.year-hint {
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.back-button {
    background: transparent;
    color: #3b82f6;
    padding: 1rem;
    font-size: 1.05rem;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.back-button:hover {
    text-decoration: none;
}

@media (max-width: 576px) {
    .back-button {
        padding: 0.75rem;
        font-size: 1rem;
    }
}