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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.logo {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Buttons Container (Index Page) */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    background-color: #b41e1e;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 60px;
}

.btn:hover {
    background-color: #9c1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 30, 30, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn span {
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Form Styles (Cadastro Page) */
.form-container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #b41e1e;
    text-align: center;
    margin-bottom: 16px;
}

.form-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    flex: 1;
}

.form-group.half-width {
    flex: 1;
    min-width: 0; /* Permite que o flex funcione corretamente */
}

.form-group.third-width {
    flex: 2;
    min-width: 0;
}

.form-group.small-width {
    flex: 0 0 100px;
    min-width: 100px;
    max-width: 120px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-group input:focus {
    outline: none;
    border-color: #b41e1e;
    box-shadow: 0 0 0 3px rgba(180, 30, 30, 0.1);
}

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

.submit-btn {
    margin-top: 20px;
    font-size: 18px;
    padding: 16px 32px;
    width: 100%;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.footer-content {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.footer-content p {
    margin-bottom: 4px;
}

.footer-content strong {
    color: #b41e1e;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group.half-width,
    .form-group.third-width,
    .form-group.small-width {
        flex: 1;
    }
    
    .buttons-container {
        max-width: 100%;
    }
    
    .btn {
        font-size: 16px;
        padding: 16px 24px;
    }
    
    .form-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px 15px;
        margin: 0 -5px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-subtitle {
        font-size: 14px;
    }
}