@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #00c6a7;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --background-color: #f0f2f5;
    --container-bg-color: #ffffff;
    --text-color-dark: #333;
    --text-color-light: #666;
    --input-border-color: #dde1e7;
    --input-focus-border: #007bff;
    --white-color: #fff;
    --animation-duration: 30s;
    --success-bg-color: #e9f7ef;
    --success-text-color: #1d7f4d;
    --error-bg-color: #fff2f2;
    --error-text-color: #d93025;
    --forca-muito-fraca: #e74c3c;
    --forca-fraca: #f39c12;
    --forca-media: #f1c40f;
    --forca-forte: #28a745;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    overflow-y: auto;
}

.cadastro-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background-color: var(--container-bg-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    overflow: hidden;
    margin: 2rem 0;
}

.left-panel {
    flex: 1;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 800px;
}

.icon-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.central-icon {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.central-icon i {
    font-size: 70px;
    color: var(--white-color);
}

.orbiting-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateIcons var(--animation-duration) linear infinite;
}

@keyframes rotateIcons {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-group {
    position: absolute;
    width: 65px;
    height: 65px;
    background-color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    left: 50%;
    top: 50%;
    margin: -32.5px;
    transform: rotate(calc(360deg / 6 * var(--i))) translateY(-180px);
}

.icon-group i {
    font-size: 30px;
    color: var(--primary-color);
    animation: anti-rotateIcons var(--animation-duration) linear infinite;
}

@keyframes anti-rotateIcons {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.right-panel {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 50px;
    overflow-y: auto;
}

.cadastro-box {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color-dark);
    line-height: 1.2;
    margin-bottom: 10px;
}

.title span {
    display: block;
    font-weight: 500;
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-color-light);
    margin-bottom: 25px;
    font-size: 1rem;
}

.cadastro-form {
    display: flex;
    flex-direction: column;
}

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

.form-row .input-group {
    flex: 1;
}

.input-group {
    margin-bottom: 1rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color-dark);
    font-size: 0.9rem;
}

.input-field {
    position: relative;
}

.input-field i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    transition: color 0.3s;
    pointer-events: none;
}

.input-field input,
.input-field select {
    width: 100%;
    padding: 14px 15px 14px 50px;
    border: 1px solid var(--input-border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color-dark);
    background-color: #fdfdff;
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none;
}

.input-field select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0a0a0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: .6em auto;
}

.input-field input:focus,
.input-field select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.input-field input:focus ~ i,
.input-field select:focus ~ i {
    color: var(--primary-color);
}

.cadastro-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--gradient);
    background-size: 200% auto;
    color: var(--white-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    margin-top: 10px;
}

.cadastro-button:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(0, 123, 255, 0.5);
}

.forca-senha {
    margin: -5px 0 1rem 0;
}

.barras {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    height: 5px;
    margin-bottom: 5px;
}

.barras .nivel {
    background-color: #e9ecef;
    border-radius: 5px;
    transition: background-color 0.4s ease;
}

.forca-texto {
    font-size: 0.8rem;
    color: var(--text-color-light);
    text-align: right;
    height: 1em;
}

.forca-senha.muito-fraca .barras .nivel:nth-child(1) { background-color: var(--forca-muito-fraca); }
.forca-senha.fraca .barras .nivel:nth-child(-n+2) { background-color: var(--forca-fraca); }
.forca-senha.media .barras .nivel:nth-child(-n+3) { background-color: var(--forca-media); }
.forca-senha.forte .barras .nivel:nth-child(-n+4) { background-color: var(--forca-forte); }

.termos {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-color-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-container input {
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fdfdff;
    border: 1px solid var(--input-border-color);
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--white-color);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.termos a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.termos a:hover {
    text-decoration: underline;
}

.extra-links {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-color-light);
}

.extra-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.extra-links a:hover {
    text-decoration: underline;
}

#feedback-message {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    text-align: center;
}

#feedback-message.success {
    background-color: var(--success-bg-color);
    color: var(--success-text-color);
    display: block;
}

#feedback-message.error {
    background-color: var(--error-bg-color);
    color: var(--error-text-color);
    display: block;
}

/* RESPONSIVO COMPLETO COM SCROLL NO MOBILE */
@media (max-width: 992px) {
    .left-panel {
        display: none;
    }

    .cadastro-container {
        width: 100%;
        max-width: 520px;
        min-height: 100vh;
        height: auto;
        margin: 2rem 0;
        display: flex;
        flex-direction: column;
    }

    .right-panel {
        flex: 1;
        padding: 40px 25px;
        overflow-y: auto;
        max-height: 100vh;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    body {
        overflow-y: auto;
    }
}
