/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #005aaa 0%, #0074d9 50%, #50E3C2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Container principal */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1400px;
    min-height: 100vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 90, 170, 0.15);
    overflow: hidden;
}

/* Seção de cadastro */
.register-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #ffffff;
    overflow-y: auto;
    max-height: 100vh;
}

.register-card {
    width: 100%;
    max-width: 450px;
    animation: slideInLeft 0.8s ease-out;
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 0.5rem;
}

.register-subtitle {
    font-size: 1rem;
    color: #666666;
    font-weight: 400;
}

/* Formulário */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-field, .select-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #666666;
    font-size: 1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-input, .form-select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus, .form-select:focus {
    border-color: #005aaa;
    box-shadow: 0 0 0 3px rgba(0, 90, 170, 0.1);
}

.form-input:focus + .input-label,
.input-field.focused .input-label,
.form-select:focus + .select-label,
.select-field.focused .select-label {
    transform: translateY(-2.5rem) scale(0.85);
    color: #005aaa;
}

.form-input:focus ~ .input-icon,
.input-field.focused .input-icon,
.form-select:focus ~ .input-icon,
.select-field.focused .input-icon {
    color: #005aaa;
}

.input-label, .select-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: #ffffff;
    padding: 0 0.25rem;
}

/* Estilização específica para selects */
.form-select {
    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='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    color: #666666;
}

.form-select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-select option {
    color: #333333;
    background: #ffffff;
    padding: 0.5rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    background: rgba(0, 90, 170, 0.1);
    color: #005aaa;
}

/* Mensagens de erro */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-input.is-invalid, .form-select.is-invalid {
    border-color: #e74c3c;
}

/* Botão de cadastro */
.register-btn {
    background: linear-gradient(135deg, #005aaa 0%, #0074d9 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 90, 170, 0.3);
    background: linear-gradient(135deg, #003d7a 0%, #005aaa 100%);
}

.register-btn:active {
    transform: translateY(0);
}

.register-btn.loading {
    pointer-events: none;
}

.register-btn.loading span {
    opacity: 0;
}

.register-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Divisor */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #666666;
    font-size: 0.875rem;
}

/* Link de login */
.login-link {
    text-align: center;
}

.login-link p {
    color: #666666;
    font-size: 0.875rem;
}

.login-btn-link {
    color: #005aaa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-btn-link:hover {
    color: #003d7a;
    text-decoration: underline;
}

/* Seção de boas-vindas */
.welcome-section {
    background: linear-gradient(135deg, #005aaa 0%, #50E3C2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: slideInRight 0.8s ease-out;
}

.welcome-header {
    position: absolute;
    top: -1rem;
    right: 0;
    left: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.7);
}

.welcome-main {
    margin-top: 2rem;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.welcome-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 400px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.feature i {
    font-size: 1rem;
    width: 20px;
}

/* Formas de fundo */
.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: -30px;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

/* Animações */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .container {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 15px;
        max-width: 100%;
    }
    
    .welcome-section {
        order: -1;
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.125rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .features {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .register-section {
        padding: 1.5rem;
        max-height: none;
    }
    
    .register-title {
        font-size: 1.75rem;
    }
    
    .register-form {
        gap: 1rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem;
        border-radius: 10px;
    }
    
    .register-section {
        padding: 1rem;
    }
    
    .welcome-section {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 1.25rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .register-card {
        max-width: 100%;
    }
    
    .form-input, .form-select {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }
    
    .input-icon {
        left: 0.875rem;
    }
    
    .input-label, .select-label {
        left: 2.75rem;
    }
}

