/* Paleta de Cores Infantil/Estilosa */
:root {
    --bg-page: #FFF9F2; 
    --primary: #FF8F6B; 
    --primary-hover: #E87450;
    --secondary: #8ECAE6; 
    --secondary-hover: #6EB2D4;
    --pastel-yellow: #FFE399; 
    --pastel-green: #D4EDB2; 
    --text-main: #2D3A4B; 
    --text-light: #6E7D91; 
    --card-bg: #FFFFFF;
    --border-color: #F0E2D3;
    --shadow: 0 12px 30px rgba(255, 143, 107, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--border-color) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

/* Estrutura Principal do Container */
.login-wrapper {
    background-color: var(--card-bg);
    width: 1000px;
    max-width: 100%;
    min-height: 600px;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    box-shadow: var(--shadow);
    border: 4px solid var(--border-color);
    overflow: hidden;
    z-index: 10;
}

@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    .visual-panel {
        display: none !important;
    }
}

/* Esquerda - Painel Visual */
.visual-panel {
    background: linear-gradient(135deg, #FFF1E6 0%, #FFE2D1 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-right: 4px solid var(--border-color);
}

.cloud {
    position: absolute;
    background-color: white;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    opacity: 0.9;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background-color: white;
    border-radius: 50%;
}
.cloud.c1 {
    width: 100px; height: 35px; top: 10%; left: 10%;
    animation: floatLeftRight 12s ease-in-out infinite alternate;
}
.cloud.c1::before { width: 45px; height: 45px; top: -20px; left: 15px; }
.cloud.c1::after { width: 35px; height: 35px; top: -15px; right: 15px; }

.cloud.c2 {
    width: 80px; height: 28px; bottom: 15%; right: 10%;
    animation: floatLeftRight 8s ease-in-out infinite alternate-reverse;
}
.cloud.c2::before { width: 35px; height: 35px; top: -15px; left: 12px; }
.cloud.c2::after { width: 25px; height: 25px; top: -10px; right: 12px; }

@keyframes floatLeftRight {
    0% { transform: translateX(0px); }
    100% { transform: translateX(15px); }
}

.brand-header {
    text-align: center;
    z-index: 2;
}

.brand-logo-text {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 38px;
    letter-spacing: -1px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-logo-text span {
    color: var(--secondary);
}

.brand-tagline {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.illustration-container {
    width: 100%;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.closet-svg {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(255,143,107,0.15));
}

.swinging-clothes {
    transform-origin: 125px 50px;
    animation: swingGently 4s ease-in-out infinite;
}

@keyframes swingGently {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.brand-footer-text {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
    z-index: 2;
}

/* Direita - Painel do Formulário */
.form-panel {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
}

/* Alertas do CI4 */
.alert-error {
    background-color: #fee2e2;
    color: #ef4444;
    border: 2px dashed #fca5a5;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    list-style-type: none;
}

.input-group {
    margin-bottom: 22px;
    position: relative;
}

.input-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-label i {
    color: var(--primary);
    font-size: 13px;
}

.input-wrapper {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 16px 20px 16px 48px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    background-color: #FAF6F0;
    border: 2px solid transparent;
    border-radius: 20px;
    outline: none;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: #A6B4C5;
    font-weight: 500;
}

.input-field:hover {
    background-color: #FFF;
    border-color: var(--border-color);
}

.input-field:focus {
    background-color: #FFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 143, 107, 0.15);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
    transition: color 0.2s;
}

.input-field:focus + .input-icon {
    color: var(--primary);
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 5;
}
.password-toggle:hover {
    color: var(--primary);
}

.form-helpers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--secondary-hover);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 20px;
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background-color: var(--primary);
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(255, 143, 107, 0.3);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 143, 107, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}