@import url(globals.css);


body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 620px;
    background:
        linear-gradient(rgba(238, 242, 252, 0.62), rgba(238, 242, 252, 0.62)),
        url('../images/children-playroom-bg-v2.jpg') center / cover no-repeat fixed;
}

.container {
    display: flex;
    width: 800px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.left {
    flex: 1;
    background:
        linear-gradient(135deg, rgba(72, 41, 193, 0.72), rgba(42, 107, 238, 0.72)),
        url('../images/children-playroom-bg-v2.jpg') 42% center / cover no-repeat;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

.left h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.left::before,
.left::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.left::before {
    top: 20px;
    left: 20px;
}

.left::after {
    bottom: 20px;
    right: 20px;
}

.left .user-email {
    color: whitesmoke;
    text-align: center;
    font-weight: bold;

}

.right {
    flex: 1;
    padding: 40px;
}

.right h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.signup-notice {
    margin: -8px 0 20px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.input-group {
    margin-bottom: 10px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.password-toggle {
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0;
}

.field-feedback {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
    text-align: left;
}

.field-feedback.error {
    color: #dc2626;
}

.field-feedback.success {
    color: #059669;
}

.password-toggle.is-active {
    color: var(--primary-color)
}

.btn {
    width: 100%;
    background: var(--background-gradient);
    color: var(--text-color);
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.4s ease-in-out, transform 0.2s ease-in-out;
}

.btn:hover {
    background: var(--button-hover);
    transform: scale(1.05);
}

.register {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.register a {
    text-decoration: none;
    color: var(--primary-color);
}

.register a:hover {
    color: var(--secondary-color);
}

.register:has(form) {
    display: flex;
    justify-content: space-around;
}

.options {
    display: flex;
    justify-content: space-between;
    margin: 2em 0;
}

.error {
    color: rgb(223, 8, 8);
    text-align: center;
}

.error-messages,
.success-messages {
    padding: 0.2em 0.5em;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 1em;
}

.error-messages {
    background: rgb(235, 79, 79);
}

.success-messages {
    background: rgb(89, 213, 89);
}

.error-messages .error,
.success-messages .success {
    color: whitesmoke;
}

.btn-link {
    outline: none;
    border: none;
    background: transparent;
    text-decoration: underline;
    color: var(--primary-color);

}

.btn-link:hover {
    color: var(--secondary-color);

}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left {
        display: none;
    }
}
