@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('https://arservicoscontabilidade.pt/wp-content/uploads/2025/09/mt-sample-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 1rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        max-width: 100%;
    }
}

.logo {
    width: 200px;
    max-width: 80%;
    height: auto;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .logo {
        width: 150px;
        margin-bottom: 1rem;
    }
}

h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

@media (max-width: 768px) {
    .form-group input, .form-group select {
        font-size: 16px;
    }
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #007BFF;
}

.button {
    display: block;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.links a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s;
}

.links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.flash-messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.flash-messages li {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: left;
}

.flash-messages .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-messages .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-messages .warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.flash-messages .info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer Styles */
footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

footer p {
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    footer {
        font-size: 0.75rem;
        padding: 10px 15px;
    }
}
