/* ============================================
   MARNYL - Auth Page Styles
   Matching main site design - Pink background, black text
   ============================================ */

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

.marnyl-auth-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #000;
    overflow: hidden; /* Убираем прокрутку */
    height: 100vh;
}

/* ============================================
   FULL SCREEN 3D BACKGROUND
   ============================================ */

#cubeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ============================================
   SPLIT CONTAINER
   ============================================ */

.marnyl-auth-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ============================================
   LEFT SIDE: Logo
   ============================================ */

.marnyl-auth-left {
    flex: 1;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marnyl-auth-branding {
    position: relative;
    z-index: 2;
    text-align: center;
}

.marnyl-auth-logo-text {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #ff69b4;
    text-shadow:
        0 0 20px rgba(255, 105, 180, 0.8),
        0 0 40px rgba(255, 105, 180, 0.6),
        0 0 60px rgba(255, 105, 180, 0.4),
        3px 3px 0 #000,
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(255, 105, 180, 0.8),
            0 0 40px rgba(255, 105, 180, 0.6),
            0 0 60px rgba(255, 105, 180, 0.4),
            3px 3px 0 #000,
            -3px -3px 0 #000,
            3px -3px 0 #000,
            -3px 3px 0 #000;
    }
    50% {
        text-shadow:
            0 0 30px rgba(255, 105, 180, 1),
            0 0 60px rgba(255, 105, 180, 0.8),
            0 0 90px rgba(255, 105, 180, 0.6),
            3px 3px 0 #000,
            -3px -3px 0 #000,
            3px -3px 0 #000,
            -3px 3px 0 #000;
    }
}

/* ============================================
   RIGHT SIDE: Forms
   ============================================ */

.marnyl-auth-right {
    flex: 1;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto; /* Прокрутка только если совсем не помещается */
}

/* ============================================
   FORM CONTAINER
   ============================================ */

.marnyl-auth-form-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 5px solid #000;
    border-radius: 0;
    padding: 40px 50px;
    width: 100%;
    max-width: 550px;
    box-shadow: none;
    display: none;
    animation: marnylAuthSlideIn 0.3s ease-out;
    margin: auto 0; /* Центрируем по вертикали */
}

.marnyl-auth-form-container.active {
    display: block;
}

@keyframes marnylAuthSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marnyl-auth-form-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 10px;
    text-align: center;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marnyl-auth-form-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

/* ============================================
   INPUT FIELDS
   ============================================ */

.marnyl-auth-input-group {
    margin-bottom: 20px;
}

.marnyl-auth-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marnyl-auth-input {
    width: 100%;
    padding: 12px 18px;
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    color: #000;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
    font-weight: 600;
}

.marnyl-auth-input:focus {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-auth-input::placeholder {
    color: #999;
}

/* ============================================
   BUTTONS (Main site style)
   ============================================ */

.marnyl-auth-button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.marnyl-auth-button-3d {
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 15px;
}

.marnyl-auth-button-group .marnyl-auth-button-3d {
    margin-bottom: 0;
}

.marnyl-auth-button-3d.main-button {
    flex: 1;
}

.marnyl-auth-button-3d.google-button {
    width: auto;
    min-width: 64px;
    flex: 0 0 64px;
}

.marnyl-auth-button-text {
    display: block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    background: #ffffff;
    border: 5px solid #000000;
    border-radius: 0;
    color: #000000;
    text-align: center;
    transition: all 0.15s ease;
    box-shadow: none;
    letter-spacing: 2px;
}

.marnyl-auth-button-3d:hover .marnyl-auth-button-text {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #000000;
}

.marnyl-auth-button-3d:active .marnyl-auth-button-text {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* Secondary Button */
.marnyl-auth-button-3d.secondary .marnyl-auth-button-text {
    background: #ff69b4;
    color: #000;
}

/* Google Button */
.marnyl-auth-button-3d.google-button .marnyl-auth-button-text {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    width: 64px;
    height: 64px;
}

.marnyl-auth-button-3d.google-button .marnyl-auth-button-text svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* ============================================
   LINKS AND DIVIDERS
   ============================================ */

.marnyl-auth-forgot-link-container {
    text-align: right;
    margin-bottom: 20px;
}

.marnyl-auth-link {
    color: #000;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.marnyl-auth-link:hover {
    opacity: 0.7;
}

.marnyl-auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    color: #666;
    font-size: 14px;
    font-weight: 700;
}

.marnyl-auth-divider::before,
.marnyl-auth-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #000;
}

/* ============================================
   MESSAGES (Success/Error)
   ============================================ */

.marnyl-auth-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 0;
    font-size: 14px;
    text-align: center;
    display: none;
    font-weight: 700;
    animation: marnylAuthSlideIn 0.3s ease-out;
}

.marnyl-auth-message.success {
    display: block;
    background: rgba(0, 255, 0, 0.2);
    border: 3px solid #000;
    color: #000;
}

.marnyl-auth-message.error {
    display: block;
    background: rgba(255, 0, 0, 0.2);
    border: 3px solid #000;
    color: #000;
}

.marnyl-auth-message.info {
    display: block;
    background: rgba(0, 150, 255, 0.2);
    border: 3px solid #000;
    color: #000;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .marnyl-auth-left,
    .marnyl-auth-right {
        flex: none;
        width: 100%;
        height: 50vh;
    }

    .marnyl-auth-left {
        padding: 40px 20px;
    }

    .marnyl-auth-features {
        grid-template-columns: 1fr;
    }

    .marnyl-auth-form-container {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .marnyl-auth-left {
        display: none;
    }

    .marnyl-auth-right {
        height: 100vh;
        padding: 20px;
    }

    .marnyl-auth-form-container {
        padding: 25px;
    }

    .marnyl-auth-form-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   CLOUDFLARE TURNSTILE CAPTCHA STYLES
   ============================================ */

.cf-turnstile {
    width: 100% !important;
    margin: 15px 0 !important;
}

.cf-turnstile > div,
.cf-turnstile > div > iframe {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
}
