/* Home page styles */
@font-face {
	font-family: 'nunito-bold';
	src: url('../font/cakedingbats-webfont.eot');
	src: url('../font/cakedingbats-webfont.eot?#iefix') format('embedded-opentype'),
	url('../font/cakedingbats-webfont.woff2') format('woff2'),
	url('../font/cakedingbats-webfont.woff') format('woff'),
	url('../font/cakedingbats-webfont.ttf') format('truetype'),
	url('../font/cakedingbats-webfont.svg#cake_dingbatsregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap');

* {
    font-family: 'Nunito', sans-serif;
    font-weight: 700; /* 700 é o peso "bold" */
}

/* Reset para garantir layout vertical */
fieldset * {
    box-sizing: border-box;
}

fieldset h2, fieldset p, fieldset div, fieldset label {
    display: block !important;
    float: none !important;
}

.btn-cadastro {
    background-color: #3bcca2;
    color: #fbf9ff;
    font-size: 14px;
}

.alert-box {
    display: none;
    background-color: #ff4d4d;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Container principal */
fieldset {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Logo e título */
fieldset > div:first-child {
    text-align: center;
    margin-bottom: 30px;
}

/* Cabeçalho */
.header-content {
    margin-bottom: 30px;
    display: block;
    width: 100%;
}

.welcome-title {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
    display: block;
    width: 100%;
}

.welcome-text {
    color: #666;
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.5;
    display: block;
    width: 100%;
}

/* Botões do Google */
.div-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}

.g_id_signin {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
}

/* Link "Ou cadastre-se manualmente" */
#show-manual-register, #back-to-google {
    color: #3bcca2;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
}

#show-manual-register:hover, #back-to-google:hover {
    color: #2da786;
    text-decoration: underline;
    transform: translateY(-2px);
}

/* Formulários */
#auto-register, #manual-register {
    animation: fadeIn 0.4s ease-in;
    display: block;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Labels */
.control-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Inputs */
.form-control {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #3bcca2;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 204, 162, 0.1);
}

.form-control::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Botão de cadastro */
.btn-cadastro {
    width: 100%;
    background: linear-gradient(135deg, #3bcca2 0%, #2da786 100%);
    color: #ffffff;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cadastro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 204, 162, 0.4);
}

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

.btn-cadastro:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Divisor */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #999;
    width: 100%;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
}

/* Estrutura de layout */
.row {
    display: block;
    width: 100%;
}

/* Espaçamento dos campos */
.col-12 {
    display: block;
    width: 100%;
    margin-bottom: 0;
}

/* Mensagem de erro customizada */
.alert-box {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Link de voltar */
.btn-link {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* Background gradiente */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Ícones nos labels */
.control-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Feedback visual para campos preenchidos */
.form-control:valid {
    border-color: #3bcca2;
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

/* Efeito de digitação no placeholder */
.form-control:focus::placeholder {
    opacity: 0.5;
}

/* Melhorias no input de data */
input[type="date"].form-control {
    position: relative;
    cursor: pointer;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

input[type="date"].form-control:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* Loading state para o botão */
.btn-cadastro.loading {
    position: relative;
    color: transparent;
}

.btn-cadastro.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip de ajuda */
.form-help {
    font-size: 12px;
    color: #999;
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    fieldset {
        margin: 20px;
        padding: 25px;
    }
    
    .form-control {
        padding: 12px 14px;
    }
    
    .btn-cadastro {
        padding: 14px;
        font-size: 15px;
    }
    
    body {
        padding: 10px;
    }
}