/**
 * COMMON.CSS
 * Estilos comuns a todas as páginas
 */

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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 50%, #1a3a2e 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-family: 'Palatino', 'Book Antiqua', serif;
    letter-spacing: 2px;
}

/* Card */
.card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 5em;
    margin-bottom: 20px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.card h1 {
    color: #1a4d2e;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Palatino', serif;
}

.card .subtitle {
    color: #666;
    font-size: 1.15em;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: #1a4d2e;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.required {
    color: #c41e3a;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Georgia', serif;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #1a4d2e;
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

input.error {
    border-color: #c41e3a;
}

.input-hint {
    color: #888;
    font-size: 0.9em;
    margin-top: 5px;
    font-style: italic;
}

.error-message {
    color: #c41e3a;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    cursor: pointer;
    color: #555;
    line-height: 1.6;
}

.checkbox-label a {
    color: #1a4d2e;
    font-weight: bold;
}

/* Info Box */
.info-box {
    background: #f0f7f4;
    border-left: 4px solid #1a4d2e;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.info-box h3 {
    color: #1a4d2e;
    margin-bottom: 10px;
}

.info-box p, .info-box ul {
    color: #555;
    margin: 5px 0;
}

.info-box ul {
    padding-left: 20px;
}

/* Warning Box */
.warning-box {
    background: #fff9e6;
    border-left: 4px solid #d4af37;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.warning-box strong {
    color: #d4af37;
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: none;
}

.success-message.show {
    display: block;
}

/* Error Message */
.error-alert {
    background: #f8d7da;
    border: 2px solid #c41e3a;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: none;
}

.error-alert.show {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 18px;
    font-size: 1.15em;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.btn-primary {
    background: linear-gradient(135deg, #1a4d2e, #2d5f3f);
    color: white;
    box-shadow: 0 5px 15px rgba(26, 77, 46, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d5f3f, #1a4d2e);
    box-shadow: 0 8px 25px rgba(26, 77, 46, 0.6);
    transform: translateY(-3px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: white;
    color: #1a4d2e;
    border: 2px solid #1a4d2e;
}

.btn-secondary:hover {
    background: #1a4d2e;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #c41e3a, #a01628);
    color: white;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #a01628, #c41e3a);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.6);
    transform: translateY(-3px);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #1a4d2e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer-note {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
    color: #888;
    font-size: 0.95em;
}

.footer-note p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .card {
        padding: 30px 20px;
    }

    .card h1 {
        font-size: 2em;
    }

    .logo {
        font-size: 2em;
    }
}