/* Styles for register page */
.register-container {
    width: 100%;
    min-height: 100vh;
    padding: 32px 16px;
    background: linear-gradient(135deg, #e404b4 0%, #15d4d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos */
.register-container::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.1) 10%, transparent 40%),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 4px);
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(-5%, -5%) rotate(0deg);
    }

    100% {
        transform: translate(5%, 5%) rotate(360deg);
    }
}

/* Elementos de conexão */
.register-container::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' opacity='0.1' d='M45.6,-58.1C59.1,-48.6,69.9,-34.3,72.9,-18.3C75.8,-2.3,71,15.4,62.1,30.5C53.2,45.6,40.3,58.2,24.7,68.3C9.2,78.4,-9.1,86.1,-24.1,82.6C-39.1,79.1,-50.8,64.5,-61.9,49.2C-73,33.9,-83.5,17.9,-84.8,0.6C-86.1,-16.7,-78.2,-33.4,-66.3,-45.4C-54.5,-57.4,-38.7,-64.7,-23.2,-73.2C-7.7,-81.8,7.5,-91.6,23.4,-89.6C39.3,-87.5,55.9,-73.5,45.6,-58.1Z'/%3E%3C/svg%3E");
    background-size: 500px;
    opacity: 0.15;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}


.register-form-field {
    width: min(760px, 100%);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
}

.register-form-field.open {
    opacity: 1;
    max-height: 96vh;
    padding: 32px 28px;
    overflow-y: auto;
}

.register-input {
    width: 100%;
    padding: 12px 8px;
    margin: 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
    background: transparent;
    color: #333 !important;
}

.register-input:focus {
    outline: none;
    border-bottom-color: #e404b4;
    box-shadow: 0 2px 0 0 rgba(228, 4, 180, 0.2);
}

/* .flatpickr-calendar {
    font-family: inherit;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.flatpickr-day {
    border-radius: 50%;
    transition: all 0.3s ease;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #e404b4;
    border-color: #e404b4;
    color: white;
}

.flatpickr-day.today {
    border-color: #e404b4;
}

.flatpickr-day:hover {
    background: rgba(228, 4, 180, 0.1);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: #e404b4;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    appearance: none;
    background: transparent;
    border: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.flatpickr-current-month .numInputWrapper span {
    color: #333;
}

.flatpickr-current-month .numInputWrapper input {
    color: #333;
    font-size: 16px;
    font-weight: 500;
} */

.register-input::placeholder {
    color: #666;
    /* Cinza mais escuro */
    font-weight: 300;
}

/* ESTILOS ESPECÍFICOS PARA DATA */
/* .register-input[type="date"] {
    position: relative;
}

.register-input[type="date"]:not(:focus):invalid {
    color: transparent;
}

.register-input[type="date"]::before {
    content: attr(placeholder);
    position: absolute;
    color: #666;
    left: 0;
    pointer-events: none;
    transition: 0.2s all ease;
}

.register-input[type="date"]:focus::before,
.register-input[type="date"]:valid::before {
    opacity: 0;
    transform: translateY(-10px);
} */

.register-button {
    width: 100%;
    padding: 14px;
    margin-top: 18px;
    background-color: #e404b4;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.register-button:hover {
    transform: translateY(-2px);
}

#register-submit-btn .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: register-spin 0.8s linear infinite;
}

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

.d-none {
    display: none !important;
}

.register-title {
    color: #333;
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

/* Animações */
.register-input,
.register-button,
.register-title {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 14px;
    width: 100%;
}

.form-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Ajuste o media query para responsividade */
@media (max-width: 768px) {
    .register-container {
        padding: 20px 12px;
    }

    .register-form-field.open {
        max-height: none;
        padding: 24px 16px;
        border-radius: 14px;
    }

    .register-title {
        font-size: 1.85rem;
        margin-bottom: 18px;
    }

    .form-columns {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .register-button {
        margin-top: 14px;
        min-height: 46px;
    }

    .register-form-field p {
        font-size: 0.95rem;
        line-height: 1.45;
    }
}

#formRegister {
    width: min(640px, 100%);
}

#formRegister p {
    margin: 18px 0 0;
    width: 100%;
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.5;
}

#formRegister p a {
    color: #6b7280;
    text-decoration: none;
}

#formRegister p a:hover {
    color: #374151;
}

.register-login-link-wrap {
    margin-top: 14px;
    width: 100%;
    text-align: center;
    color: #6b7280;
    font-size: 0.96rem;
}

.register-login-link-wrap a {
    margin-left: 6px;
    color: #e404b4;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(228, 4, 180, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.register-login-link-wrap a:hover {
    color: #b4038d;
    border-bottom-color: rgba(180, 3, 141, 0.55);
}

@media (max-width: 420px) {
    .register-title {
        font-size: 1.65rem;
    }

    .register-input {
        font-size: 15px;
    }

    #formRegister p {
        font-size: 0.9rem;
    }

    .register-login-link-wrap {
        font-size: 0.9rem;
    }
}

/* Imagem */
.file-input-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 15px auto;
    border: 2px dashed #e404b4;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.file-input-container:hover {
    border-color: #b4038d;
    background-color: rgba(228, 4, 180, 0.05);
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.upload-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #e404b4;
    font-size: 14px;
    width: 100%;
    padding: 10px;
    pointer-events: none;
}

.file-input-container.has-image .upload-label {
    display: none;
}

.file-input-container.has-image:hover::after {
    content: "Clique para alterar";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Correção crucial para ocultar o input */
.file-input-container input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* Textarea */
textarea.register-input {
    min-height: 164px;
    resize: vertical;
    padding: 12px 15px;
    margin: 8px 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-right: 2px solid #e0e0e0;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background: transparent;
    color: #333;
    line-height: 1.5;
}

textarea.register-input:focus {
    outline: none;
    border-bottom-color: #e404b4;
    box-shadow: 0 2px 0 0 rgba(228, 4, 180, 0.2);
}

textarea.register-input::placeholder {
    color: #a0a0a0;
    font-weight: 300;
}

/* Hover suave */
textarea.register-input:hover {
    background: rgba(228, 4, 180, 0.03);
}

/* Transição suave ao redimensionar */
textarea.register-input {
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        height 0.2s ease-out;
}
