/* ============================================
   ESPAÇO CRIATIVO - AUTH REGISTER
   ============================================ */

:root {
    --ec-primary: #5a31a8;
    --ec-primary-light: #7c4dcd;
    --ec-primary-dark: #442380;
    --ec-primary-bg: #f3eefb;
    --ec-secondary: #6c5ce7;
    --ec-success: #22c55e;
    --ec-success-bg: #dcfce7;
    --ec-warning: #f59e0b;
    --ec-warning-bg: #fef3c7;
    --ec-danger: #ef4444;
    --ec-danger-bg: #fee2e2;
    --ec-text: #1f2937;
    --ec-text-light: #6b7280;
    --ec-text-muted: #9ca3af;
    --ec-border: #e5e7eb;
    --ec-bg: #f9fafb;
    --ec-white: #fff;
    --ec-radius: 8px;
    --ec-radius-lg: 12px;
    --ec-shadow: 0 1px 3px rgba(0,0,0,.1);
    --ec-shadow-lg: 0 10px 40px rgba(90,49,168,.12);
}

.ec-section {
    padding: 40px 0 60px;
    background: var(--ec-bg);
    min-height: calc(100vh - 200px);
}

/* Card */
.ec-card {
    background: var(--ec-white);
    border-radius: var(--ec-radius-lg);
    box-shadow: var(--ec-shadow-lg);
    overflow: hidden;
}

.ec-card__header {
    background: linear-gradient(135deg, var(--ec-primary) 0%, var(--ec-secondary) 100%);
    padding: 24px 28px;
    text-align: center;
}

.ec-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ec-white);
    margin: 0 0 4px;
}

.ec-card__title i { font-size: 24px; }

.ec-card__subtitle {
    font-size: 14px;
    color: rgba(255,255,255,.85);
}

.ec-card__body { padding: 28px; }

.ec-card__footer {
    padding: 20px 28px;
    background: var(--ec-bg);
    border-top: 1px solid var(--ec-border);
    text-align: center;
}

.ec-card__footer p {
    font-size: 14px;
    color: var(--ec-text-light);
    margin: 0 0 12px;
}

/* Form Sections */
.ec-form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ec-border);
}

.ec-form-section:last-child,
.ec-form-section--final {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ec-form-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ec-primary);
    margin: 0 0 20px;
}

.ec-form-section__title i {
    font-size: 16px;
    opacity: .8;
}

/* Form Group */
.ec-form-group { margin-bottom: 18px; }
.ec-form-group:last-child { margin-bottom: 0; }

.ec-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ec-text);
    margin-bottom: 6px;
}

.ec-required { color: var(--ec-danger); }

.ec-optional {
    font-weight: 400;
    color: var(--ec-text-muted);
    font-size: 12px;
}

/* Form Control */
.ec-form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ec-text);
    background: var(--ec-white);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    transition: all .2s ease;
}

.ec-form-control:focus {
    outline: none;
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px var(--ec-primary-bg);
}

.ec-form-control::placeholder { color: var(--ec-text-muted); }

.ec-form-control--error { border-color: var(--ec-danger); }
.ec-form-control--error:focus { box-shadow: 0 0 0 3px var(--ec-danger-bg); }

/* Select */
.ec-select-wrapper { position: relative; }
.ec-form-select { appearance: none; padding-right: 40px; cursor: pointer; }

.ec-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ec-text-muted);
    pointer-events: none;
    font-size: 12px;
}

/* Form Hint */
.ec-form-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: var(--ec-text-muted);
    margin-top: 6px;
}

.ec-form-hint i {
    margin-top: 1px;
    color: var(--ec-primary-light);
}

/* Form Error */
.ec-form-error {
    display: block;
    font-size: 12px;
    color: var(--ec-danger);
    margin-top: 4px;
    min-height: 18px;
}

/* Input Icon */
.ec-input-icon { position: relative; }
.ec-input-icon .ec-form-control { padding-right: 44px; }

.ec-input-icon__btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--ec-text-muted);
    cursor: pointer;
    transition: color .2s;
}

.ec-input-icon__btn:hover { color: var(--ec-primary); }

/* Password Meter */
.ec-password-meter {
    margin-top: 8px;
    display: none;
}

.ec-password-meter.show { display: block; }

.ec-password-meter__bar {
    height: 4px;
    background: var(--ec-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.ec-password-meter__bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all .3s ease;
}

.ec-password-meter__text {
    font-size: 11px;
    color: var(--ec-text-muted);
}

.ec-password-meter.weak .ec-password-meter__bar::after { width: 25%; background: var(--ec-danger); }
.ec-password-meter.weak .ec-password-meter__text { color: var(--ec-danger); }

.ec-password-meter.fair .ec-password-meter__bar::after { width: 50%; background: var(--ec-warning); }
.ec-password-meter.fair .ec-password-meter__text { color: var(--ec-warning); }

.ec-password-meter.good .ec-password-meter__bar::after { width: 75%; background: #10b981; }
.ec-password-meter.good .ec-password-meter__text { color: #10b981; }

.ec-password-meter.strong .ec-password-meter__bar::after { width: 100%; background: var(--ec-success); }
.ec-password-meter.strong .ec-password-meter__text { color: var(--ec-success); }

/* Password Tips */
.ec-password-tips {
    background: var(--ec-bg);
    border-radius: var(--ec-radius);
    padding: 14px 16px;
    margin-top: 16px;
}

.ec-password-tips p {
    font-size: 12px;
    font-weight: 600;
    color: var(--ec-text);
    margin: 0 0 10px;
}

.ec-password-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ec-password-tips li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ec-text-muted);
    transition: color .2s;
}

.ec-password-tips li i {
    font-size: 6px;
    color: var(--ec-border);
    transition: color .2s;
}

.ec-password-tips li.valid { color: var(--ec-success); }
.ec-password-tips li.valid i { color: var(--ec-success); }

/* Checkbox */
.ec-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}

.ec-checkbox input { display: none; }

.ec-checkbox__box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--ec-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    margin-top: 1px;
}

.ec-checkbox__box i {
    font-size: 10px;
    color: var(--ec-white);
    opacity: 0;
    transform: scale(0);
    transition: all .2s;
}

.ec-checkbox input:checked + .ec-checkbox__box {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
}

.ec-checkbox input:checked + .ec-checkbox__box i {
    opacity: 1;
    transform: scale(1);
}

.ec-checkbox:hover .ec-checkbox__box { border-color: var(--ec-primary-light); }

.ec-checkbox__label { color: var(--ec-text-light); }
.ec-checkbox__label a { color: var(--ec-primary); text-decoration: underline; }
.ec-checkbox__label a:hover { text-decoration: none; }

/* Buttons */
.ec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--ec-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.ec-btn--primary {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
    color: var(--ec-white);
}

.ec-btn--primary:hover:not(:disabled) {
    background: var(--ec-primary-dark);
    border-color: var(--ec-primary-dark);
}

.ec-btn--outline {
    background: transparent;
    border-color: var(--ec-primary);
    color: var(--ec-primary);
}

.ec-btn--outline:hover {
    background: var(--ec-primary);
    color: var(--ec-white);
}

.ec-btn--block { width: 100%; }
.ec-btn--lg { padding: 14px 24px; font-size: 15px; }
.ec-btn:disabled { opacity: .7; cursor: not-allowed; }
.ec-btn .spinner-border { width: 1em; height: 1em; }

/* Secure Badge */
.ec-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--ec-text-muted);
}

.ec-secure-badge i { color: var(--ec-success); }

/* Alert */
.ajax_response .ec-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--ec-radius);
    font-size: 14px;
    margin-bottom: 20px;
}

.ec-alert--success { background: var(--ec-success-bg); color: #166534; }
.ec-alert--danger { background: var(--ec-danger-bg); color: #991b1b; }
.ec-alert--warning { background: var(--ec-warning-bg); color: #92400e; }

/* Responsive */
@media (max-width: 767px) {
    .ec-password-tips ul { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .ec-section { padding: 20px 0 40px; }
    .ec-card__header { padding: 20px; }
    .ec-card__title { font-size: 18px; }
    .ec-card__body { padding: 20px; }
    .ec-card__footer { padding: 16px 20px; }
    .ec-form-section { margin-bottom: 24px; padding-bottom: 20px; }
}