/* =================================================================
   ADOBE STYLE AUTH PAGE - FULL SCREEN LOGIN/REGISTER
   Professional split-screen layout v3.0
   ================================================================= */

/* ========================================
   HIDE HEADER & FOOTER ON AUTH PAGE
   ======================================== */

body.woocommerce-account:not(.logged-in) .site-header,
body.woocommerce-account:not(.logged-in) footer,
body.woocommerce-account:not(.logged-in) .site-footer,
body.woocommerce-account:not(.logged-in) #wpadminbar {
    display: none !important;
}

body.woocommerce-account:not(.logged-in) {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.woocommerce-account:not(.logged-in) #main,
body.woocommerce-account:not(.logged-in) .woocommerce,
body.woocommerce-account:not(.logged-in) #content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ========================================
   MAIN AUTH PAGE CONTAINER
   ======================================== */

.adobe-auth-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #0d0d1a url('https://odakon.com/wp-content/uploads/2025/12/thumbnail-background.webp') no-repeat center center;
    background-size: cover;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

/* ========================================
   LEFT SIDE - VISUAL / BRANDING
   ======================================== */

.adobe-auth-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

.adobe-auth-visual__overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 67, 111, 0.5);
    z-index: 1;
}

.adobe-auth-visual__content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    z-index: 2;
    padding: 48px 60px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: auto;
}

/* Header Section - Top */
.adobe-auth-visual__header {
    padding-top: 0;
}

.adobe-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 12px;
}

.adobe-auth-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.adobe-auth-logo span {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.adobe-auth-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
}

/* Center Section */
.adobe-auth-visual__center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.adobe-auth-visual__center h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
    color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.adobe-auth-visual__center p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* Features Section - Now in Footer */
.adobe-auth-visual__features {
    display: none;
}

/* ========================================
   RIGHT SIDE - FORM CONTAINER
   ======================================== */

.adobe-auth-form-container {
    position: relative;
    z-index: 10;
    margin-left: 45%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    min-height: 100vh;
    background: transparent;
    overflow-y: auto;
}

.adobe-auth-panel {
    width: 100%;
    max-width: 380px;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.adobe-auth-panel--wide {
    max-width: 440px;
}

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

.adobe-auth-card {
    width: 100%;
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.adobe-auth-mobile-logo {
    display: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.adobe-auth-title {
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 20px 0;
    letter-spacing: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.adobe-auth-form {
    width: 100%;
}

.adobe-form-group {
    margin-bottom: 14px;
}

.adobe-form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.adobe-form-row-grid .adobe-form-group {
    margin-bottom: 0;
}

.adobe-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 4px;
}

.adobe-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.adobe-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    border: 1.5px solid #d4d4d4;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

/* Phone Input Styles */
.adobe-phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #d4d4d4;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.adobe-phone-input-wrapper:focus-within {
    border-color: #1473e6;
    box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.1);
}

.adobe-phone-input-wrapper:hover:not(:focus-within) {
    border-color: #b3b3b3;
}

.adobe-phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
    height: 40px;
    border-radius: 5px 0 0 5px;
}

.adobe-phone-flag {
    font-size: 18px;
    line-height: 1;
}

.adobe-phone-code {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.adobe-phone-input {
    border: none !important;
    box-shadow: none !important;
    flex: 1;
    padding: 0 14px;
    height: 40px;
}

.adobe-phone-input:focus {
    border: none !important;
    box-shadow: none !important;
}

.adobe-input::placeholder {
    color: #9ca3af;
}

.adobe-input:focus {
    border-color: #1473e6;
    box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.1);
}

.adobe-input:hover:not(:focus) {
    border-color: #b3b3b3;
}

.adobe-input.is-invalid {
    border-color: #d93025;
}

.adobe-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

/* Password input with toggle */
.adobe-input-wrapper .adobe-input {
    padding-right: 48px;
}

.adobe-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adobe-password-toggle:hover {
    color: #374151;
}

.adobe-password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Password Requirements */
.adobe-password-requirements {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.adobe-password-requirements .req {
    font-size: 11px;
    color: #9ca3af;
    transition: color 0.2s;
}

.adobe-password-requirements .req.valid {
    color: #10b981;
}

/* Error Messages */
.adobe-error-msg {
    display: none;
    font-size: 11px;
    color: #d93025;
    margin-top: 4px;
}

.adobe-error-msg:not(:empty) {
    display: block;
}

/* Error Alert Box */
.adobe-error-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 16px;
}

.adobe-error-alert svg {
    flex-shrink: 0;
    color: #dc2626;
}

/* WooCommerce Notices Override */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    list-style: none;
}

.woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.woocommerce-error::before {
    content: none;
}

/* ========================================
   FORM OPTIONS ROW (Remember me & Forgot)
   ======================================== */

.adobe-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.adobe-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    flex-wrap: nowrap;
}

.adobe-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.adobe-checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #d4d4d4;
    border-radius: 4px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.adobe-checkbox:checked + .adobe-checkbox-custom {
    background: #1473e6;
    border-color: #1473e6;
}

.adobe-checkbox:checked + .adobe-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.adobe-checkbox:focus + .adobe-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.2);
}

.adobe-checkbox-label {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 18px;
    white-space: nowrap;
}

/* ========================================
   LINKS
   ======================================== */

.adobe-link {
    color: #1473e6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.adobe-link:hover {
    color: #0d66d0;
    text-decoration: underline;
}

/* ========================================
   BUTTONS
   ======================================== */

.adobe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 42px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.adobe-btn-primary {
    background: #1473e6;
    color: #ffffff;
}

.adobe-btn-primary:hover {
    background: #0d66d0;
}

.adobe-btn-primary:active {
    background: #095aba;
    transform: scale(0.98);
}

.adobe-btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.4);
}

/* Google Button */
.adobe-btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1.5px solid #dadce0;
    margin-bottom: 14px;
}

.adobe-btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c9cd;
}

.adobe-btn-google svg {
    flex-shrink: 0;
}

/* Divider */
.adobe-divider {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.adobe-divider::before,
.adobe-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.adobe-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

/* Back Button */
.adobe-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.adobe-back-btn:hover {
    color: #1473e6;
}

.adobe-back-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   MULTI-STEP
   ======================================== */

.adobe-step {
    animation: fadeInUp 0.3s ease;
}

.adobe-step-header {
    margin-bottom: 8px;
}

/* ========================================
   SWITCH (Login <-> Register)
   ======================================== */

.adobe-auth-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.adobe-auth-switch span {
    margin-right: 4px;
}

/* ========================================
   FOOTER
   ======================================== */

.adobe-auth-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    font-size: 12px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.98);
    z-index: 100;
    border-top: 1px solid #e5e7eb;
}

.adobe-auth-footer__features {
    display: flex;
    align-items: center;
    gap: 24px;
}

.adobe-auth-footer .adobe-auth-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.adobe-auth-footer .adobe-auth-feature svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    color: #6b7280;
}

.adobe-auth-footer__links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.adobe-auth-footer a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.adobe-auth-footer a:hover {
    color: #1473e6;
}

/* ========================================
   WOOCOMMERCE NOTICES
   ======================================== */

.adobe-auth-page .woocommerce-error,
.adobe-auth-page .woocommerce-message,
.adobe-auth-page .woocommerce-info {
    margin: 0 0 20px 0;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    list-style: none;
}

.adobe-auth-page .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.adobe-auth-page .woocommerce-error li {
    list-style: none;
}

.adobe-auth-page .woocommerce-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.adobe-auth-page .woocommerce-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Hide privacy policy text that WooCommerce adds */
.adobe-auth-page .woocommerce-privacy-policy-text {
    display: none !important;
}

/* Hide Google Site Kit's default button */
.adobe-auth-page .googlesitekit-sign-in-with-google__frontend-output-button,
.adobe-auth-page .googlesitekit-sign-in-with-google {
    display: none !important;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .adobe-auth-visual {
        width: 40%;
    }
    
    .adobe-auth-visual__content {
        padding: 32px;
    }
    
    .adobe-auth-visual__center h2 {
        font-size: 26px;
    }
    
    .adobe-auth-visual__features {
        gap: 20px;
    }
    
    .adobe-auth-feature {
        font-size: 12px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .adobe-auth-page {
        flex-direction: column;
        background: #ffffff !important;
        background-image: none !important;
        overflow: hidden;
    }
    
    .adobe-auth-visual {
        display: none;
    }
    
    .adobe-auth-form-container {
        margin-left: 0;
        padding: 16px 20px 60px;
        min-height: 100vh;
        max-height: 100vh;
        justify-content: center;
        align-items: center;
        background: #ffffff;
        overflow-y: auto;
    }
    
    .adobe-auth-panel,
    .adobe-auth-panel--wide {
        max-width: 400px;
        width: 100%;
    }
    
    .adobe-auth-card {
        padding:32px;
        box-shadow: none;
        border-radius: 0;
    }
    
    .adobe-auth-mobile-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
    }
    
    .adobe-auth-mobile-logo a {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #1a1a1a;
    }
    
    .adobe-auth-mobile-logo img {
        width: 40px;
        height: 40px;
    }
    
    .adobe-auth-mobile-logo span {
        font-size: 22px;
        font-weight: 700;
    }
    
    /* Hide titles on mobile */
    .adobe-auth-title {
        display: none;
    }
    
    .adobe-form-group {
        margin-bottom: 12px;
    }
    
    .adobe-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .adobe-input {
        height: 44px;
        font-size: 15px;
    }
    
    .adobe-form-row-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .adobe-btn {
        height: 44px;
        font-size: 15px;
    }
    
    .adobe-divider {
        margin-bottom: 12px;
    }
    
    .adobe-form-options {
        margin-bottom: 12px;
    }
    
    .adobe-auth-switch {
        text-align: center;
        margin-top: 16px;
        padding-top: 12px;
    }
    
    /* Footer Mobile - Single line, hide features */
    .adobe-auth-footer {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding: 12px 20px;
        text-align: center;
    }
    
    .adobe-auth-footer__features {
        display: none;
    }
    
    .adobe-auth-footer__links {
        justify-content: center;
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .adobe-auth-footer__links span,
    .adobe-auth-footer__links a {
        font-size: 11px;
    }
}

/* ========================================
   SMALL MOBILE
   ======================================== */

@media (max-width: 375px) {
    .adobe-auth-form-container {
        padding: 12px 16px 60px;
    }
    
    .adobe-auth-panel,
    .adobe-auth-panel--wide {
        max-width: 100%;
    }
    
    .adobe-auth-mobile-logo {
        margin-bottom: 20px;
    }
    
    .adobe-auth-mobile-logo img {
        width: 36px;
        height: 36px;
    }
    
    .adobe-auth-mobile-logo span {
        font-size: 20px;
    }
    
    .adobe-input {
        height: 42px;
        font-size: 15px;
    }
    
    .adobe-btn {
        height: 42px;
    }
    
    .adobe-auth-footer__links span,
    .adobe-auth-footer__links a {
        font-size: 10px;
    }
}

/* ========================================
   EMAIL VERIFICATION STEP
   ======================================== */

.adobe-verification-content {
    text-align: center;
    padding: 8px 0;
}

.adobe-verification-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #1473e6 0%, #0d5bba 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: iconBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.adobe-verification-icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.adobe-verification-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.adobe-verification-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 24px;
}

/* 6-Digit Code Input */
.adobe-code-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.adobe-code-separator {
    font-size: 24px;
    color: #d1d5db;
    font-weight: 300;
    margin: 0 4px;
}

.adobe-code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: #1a1a1a;
    background: #ffffff;
    border: 2px solid #d4d4d4;
    border-radius: 10px;
    transition: all 0.2s;
    outline: none;
    caret-color: #1473e6;
}

.adobe-code-input:focus {
    border-color: #1473e6;
    box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.15);
    transform: scale(1.02);
}

.adobe-code-input:hover:not(:focus) {
    border-color: #b3b3b3;
}

.adobe-code-input.is-invalid {
    border-color: #d93025;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Resend Code */
.adobe-resend-code {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.adobe-resend-code .adobe-link {
    background: none;
    border: none;
    color: #1473e6;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    margin-left: 4px;
}

.adobe-resend-code .adobe-link:hover {
    text-decoration: underline;
}

.adobe-resend-timer {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 4px;
}

/* Button Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ========================================
   MOBILE ADJUSTMENTS FOR VERIFICATION
   ======================================== */

@media (max-width: 768px) {
    .adobe-code-input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
    
    .adobe-code-input-wrapper {
        gap: 6px;
    }
    
    .adobe-code-separator {
        font-size: 20px;
        margin: 0 2px;
    }
    
    .adobe-verification-icon {
        width: 60px;
        height: 60px;
    }
    
    .adobe-verification-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .adobe-verification-title {
        font-size: 20px;
    }
}

@media (max-width: 375px) {
    .adobe-code-input {
        width: 36px;
        height: 44px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    .adobe-code-input-wrapper {
        gap: 4px;
    }
    
    .adobe-code-separator {
        font-size: 16px;
        margin: 0;
    }
}
