/* ==========================================================
   CURA Auth — Login, Register, Reset Password
   Full-height split: video left + form right
   ========================================================== */

.cura-auth {
    display: flex;
    height: 100vh;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    --e-global-color-primary: #000000 !important;
    --e-global-color-accent: #000000 !important;
}

/* --- Left: Video/Image with overlay --- */
.cura-auth__media {
    position: relative;
    width: 50%;
    height: 100vh;
    overflow: hidden;
}

.cura-auth__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cura-auth__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.cura-auth__logo {
    position: relative;
    z-index: 2;
    font-family: 'Juana', serif;
    font-size: 80px;
    font-weight: 300;
    color: #FFFFFF;
    letter-spacing: -1px;
}

/* --- Right: Form --- */
.cura-auth__form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    height: 100vh;
    padding: 130px 60px 30px;
    background: #FFFFFF;
    overflow: hidden;
}

.cura-auth__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cura-auth__back {
    font-size: 14px;
    color: #000000;
    text-decoration: none;
}

.cura-auth__back:hover {
    text-decoration: underline;
}

/* Form container */
.cura-auth__form-container {
    max-width: 440px;
}

.cura-auth__title {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px;
    line-height: 1.2;
}

.cura-auth__subtitle {
    font-size: 14px;
    color: #666666;
    margin: 0 0 24px;
}

/* Fields */
.cura-auth__field {
    margin-bottom: 16px;
}

.cura-auth__field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 6px;
}

.cura-auth__field input[type="text"],
.cura-auth__field input[type="email"],
.cura-auth__field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #000000;
    border: 1px solid #E1E1E1 !important;
    border-radius: 8px;
    background: #FFFFFF;
    transition: border-color 200ms ease;
    box-sizing: border-box;
    outline: none !important;
    box-shadow: none !important;
}

.cura-auth__field input:focus {
    border-color: #000000 !important;
    outline: none !important;
    box-shadow: none !important;
}

.cura-auth__field input::placeholder {
    color: #999999;
}

/* Row layout (remember + forgot) */
.cura-auth__field--row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cura-auth__checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
}

.cura-auth__checkbox input { accent-color: #000000; }

.cura-auth__link {
    font-size: 14px;
    color: #000000;
    text-decoration: underline;
}

/* Error */
.cura-auth__error {
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #8B3A3A;
    background: rgba(139, 58, 58, 0.08);
    border-radius: 8px;
}

/* Submit button — BLACK pill */
.cura-auth__submit {
    width: 100%;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF !important;
    background: #000000 !important;
    border: none !important;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 200ms ease;
    outline: none !important;
    box-shadow: none !important;
}

.cura-auth__submit:hover {
    background: #1a1a1a !important;
}

.cura-auth__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Divider text */
.cura-auth__divider-text {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin: 20px 0;
    position: relative;
}

.cura-auth__divider-text::before,
.cura-auth__divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #E1E1E1;
}

.cura-auth__divider-text::before { left: 0; }
.cura-auth__divider-text::after { right: 0; }

/* Social button */
.cura-auth__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    background: #FFFFFF;
    border: 1px solid #E1E1E1 !important;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 200ms ease;
    outline: none !important;
    box-shadow: none !important;
}

.cura-auth__social-btn:hover {
    background: #f8f8f8;
}

/* Switch link */
.cura-auth__switch {
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-top: 16px;
}

.cura-auth__switch a {
    color: #000000;
    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================================
   Auth pages: full-height BEHIND transparent header
   ========================================================== */

/* Auth goes behind the header — covers entire viewport */
.cura-auth {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Header must be ABOVE auth */
body.cura-auth-page .cura-header {
    z-index: 100 !important;
}

body.cura-auth-page .cura-announcement-bar {
    z-index: 101 !important;
}

/* Force header transparent on auth pages — override cura-light-header */
body.cura-auth-page .cura-header,
body.cura-auth-page .cura-header.cura-header--scrolled,
body.cura-auth-page .cura-header.cura-header--transparent {
    background-color: transparent !important;
    backdrop-filter: none !important;
    margin-bottom: -98px !important;
}

body.cura-auth-page .cura-header .cura-header-logo img {
    filter: none !important; /* Keep logo white */
}

body.cura-auth-page .cura-header .elementor-heading-title,
body.cura-auth-page .cura-header .elementor-heading-title a,
body.cura-auth-page .cura-header .cura-header-icons .elementor-icon i,
body.cura-auth-page .cura-header .cura-header-icons .elementor-icon svg,
body.cura-auth-page .cura-header .elementor-widget-heading .elementor-heading-title {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1024px) {
    .cura-auth__media { width: 40%; }
    .cura-auth__form-wrapper { width: 60%; padding: 30px 40px; }
    .cura-auth__logo { font-size: 56px; }
}

@media (max-width: 767px) {
    .cura-auth { flex-direction: column; }
    .cura-auth__media { width: 100%; min-height: 200px; padding: 30px; }
    .cura-auth__logo { font-size: 36px; }
    .cura-auth__form-wrapper { width: 100%; min-height: auto; padding: 24px 20px; }
    .cura-auth__title { font-size: 24px; }
}
