body {
    background-color: #1e304d;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/login-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}

/* Header Section - Fixed to top-left corner */
.header-container {
    position: fixed;
    top: 0;
    left: 9vh;
    display: flex;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    z-index: 99;
    padding-left: 0;
}

.logo-container {
    background-color: #121f33;
    border: 2px solid #314d7b;
    border-top: none;
    border-radius: 0px 0px 12px 12px;
    padding: 15px 25px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    height: 80px;
    display: flex;
    align-items: center;
    margin-left: 0;
}

.logo {
    height: 80px;
    position: relative;
    top: 40px;
    max-width: 100%;
}

.progress-container {
    background-color: #121f33;
    border: 2px solid #314d7b;
    border-radius: 12px;
    height: 50px;
    width: 300px;
    margin-left: 10px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    margin-top: 25px;
    overflow: hidden; /* Adicionado para esconder o overflow dos efeitos */
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 15%;
    background-color: #47a403;
    border-right: 2px solid #5faf25;
    border-radius: 6px 0 0 6px;
    z-index: 1;
    transition: width 0.3s ease;
}

.progress-text {
    color: white;
    z-index: 2;
    position: relative;
}

/* Form Sections */
.form-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 150px 9vh 150px 9vh;
    gap: 40px;
    width: calc(100% - 20vh);
    box-sizing: border-box;
}

.form-section {
    width: calc(50% - 20px);
    padding: 25px;
    box-sizing: border-box;
    display: none;
}

.form-section.active {
    display: block;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.section-description {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: #a0a8b8;
    line-height: 1.4;
}

.form-subtitle {
    font-size: 16px;
    margin: 25px 0 15px 0;
    color: #ffffff;
}

/* Input Elements */
.input-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a8b8;
    z-index: 2;
}

input, select {
    width: 100%;
    padding: 18px 15px 18px 40px;
    background-color: #121f33;
    border: 2px solid #314d7b;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    position: relative;
}

input:focus, select:focus {
    border-color: #5386da;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.birthday-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.birthday-group select {
    flex: 1;
    padding-left: 15px;
}

/* Gender Selection */
.gender-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.gender-option {
    flex: 1;
    padding: 15px;
    background-color: #121f33;
    border: 2px solid #314d7b;
    border-radius: 6px;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.gender-option.selected {
    border-color: #5386da;
    background-color: #1e304d;
}

/* Avatar Selection */
.avatar-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar-option {
    flex: 1;
    border: 2px solid #314d7b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    background-color: #121f33;
}

.avatar-option.selected {
    border-color: #5386da;
}

.avatar-option img {
    max-width: 100%;
    height: auto;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #121f33;
    padding: 20px 9vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.footer-buttons {
    display: flex;
    gap: 20px;
}

.btn-cancel {
    background-color: #a4031a;
    color: white;
    border: 2px solid #af2546;
    font-family: 'VAG Rounded';
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background-color: #c50421;
    border-color: #af2546;
}

.btn-continue {
    background-color: #47a403;
    color: white;
    border: 2px solid #5faf25;
    padding: 12px 25px;
    border-radius: 6px;
    font-family: 'VAG Rounded';
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-continue:hover {
    background-color: #3d8f03;
    border-color: #5386da;
}

.btn-back {
    background-color: #314d7b;
    color: white;
    border: 2px solid #3a5a8a;
    padding: 12px 25px;
    border-radius: 6px;
    font-family: 'VAG Rounded';
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back:hover {
    background-color: #2a4268;
    border-color: #3a5a8a;
}

::placeholder {
    color: #a0a8b8;
    opacity: 1;
}

/* Checkbox styles */
.terms-checkbox {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #a0a8b8;
}

.terms-checkbox input {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.terms-checkbox a {
    color: #5386da;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.btn-continue.disabled {
    background-color: #314d7b;
    border-color: #3a5a8a;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Adicione ao seu arquivo register.css */
.error-tooltip {
    position: absolute;
    background-color: #a4031a;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
    top: 100%;
    left: 0;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
}

.error-tooltip:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 15px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #a4031a transparent;
}

.input-group.has-error input,
.input-group.has-error select {
    border-color: #a4031a;
}

.name-confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.name-confirmation-content {
    background-color: #121f33;
    padding: 25px;
    border-radius: 8px;
    color: white;
    border: 2px solid #314d7b;
    max-width: 500px;
    width: 90%;
}

.name-confirmation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

@media (max-width: 1200px) {
    .form-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .form-section {
        width: 100%;
        max-width: 600px;
    }
    .header-container {
        padding-left: 0;
    }
    .form-wrapper {
        padding-left: 5vh;
        padding-right: 5vh;
        width: calc(100% - 10vh);
    }
}