/* ===== AUTH PAGES (Login / Registracija) ===== */

.oc-auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.oc-auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.oc-auth-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.oc-auth-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.oc-auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
}

/* Two column variant for signup */
.oc-auth-container.oc-auth-wide {
    max-width: 960px;
}

/* ---- Auth Card ---- */
.oc-auth-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.oc-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    text-decoration: none;
}

.oc-auth-logo img {
    height: 40px;
}

.oc-auth-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.oc-auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.oc-auth-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ---- Tab switcher (Login/Register) ---- */
.oc-auth-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
}

.oc-auth-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-family);
    text-decoration: none;
    text-align: center;
    display: block;
}

.oc-auth-tab:hover {
    color: #cbd5e1;
}

.oc-auth-tab.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ---- Form elements ---- */
.oc-auth-form .oc-form-group {
    margin-bottom: 20px;
}

.oc-auth-form .oc-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.oc-auth-form .oc-form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    outline: none;
}

.oc-auth-form .oc-form-input::placeholder {
    color: #64748b;
}

.oc-auth-form .oc-form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

.oc-auth-form .oc-form-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Input with icon */
.oc-input-wrapper {
    position: relative;
}

.oc-input-wrapper .oc-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
}

.oc-input-wrapper .oc-form-input {
    padding-left: 42px;
}

.oc-input-wrapper .oc-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
}

.oc-input-wrapper .oc-toggle-password:hover {
    color: #94a3b8;
}

/* Checkbox */
.oc-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.oc-auth-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
    cursor: pointer;
}

.oc-auth-check label {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    cursor: pointer;
}

.oc-auth-check label a {
    color: #60a5fa;
    text-decoration: none;
}

.oc-auth-check label a:hover {
    text-decoration: underline;
}

/* Submit button */
.oc-auth-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.oc-auth-submit:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.oc-auth-submit:active {
    transform: translateY(0);
}

.oc-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---- Messages / Alerts ---- */
.oc-auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.oc-auth-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.oc-auth-alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.oc-auth-alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---- Divider ---- */
.oc-auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.oc-auth-divider::before,
.oc-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Bottom link ---- */
.oc-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.oc-auth-footer a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.oc-auth-footer a:hover {
    text-decoration: underline;
}

/* ---- Features sidebar (signup) ---- */
.oc-auth-features {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oc-auth-features-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
}

.oc-auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.oc-auth-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.oc-auth-feature-icon.signage {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

.oc-auth-feature-icon.chat {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.oc-auth-feature-icon.products {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.oc-auth-feature-icon.trial {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.oc-auth-feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.oc-auth-feature-text p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* ---- Password strength ---- */
.oc-password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.oc-password-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.oc-password-bar.weak { background: #ef4444; }
.oc-password-bar.medium { background: #f59e0b; }
.oc-password-bar.strong { background: #10b981; }

.oc-password-label {
    font-size: 0.75rem;
    margin-top: 4px;
    color: #94a3b8;
}

/* ---- Trust badges ---- */
.oc-auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.oc-auth-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748b;
}

.oc-auth-trust-item i {
    font-size: 0.9rem;
    color: #475569;
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .oc-auth-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

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

    .oc-auth-trust {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .oc-auth-section {
        padding: 40px 16px;
    }

    .oc-auth-features {
        padding: 32px 24px;
    }
}
