/**
 * Octonove Authentication Forms Styles
 * Modern card design compatible with Elementor
 */

/* Container and Layout */
.ocn-auth-container {
    max-width: 550px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tabs */
.ocn-auth-tabs {
    display: flex;
    margin-bottom: -1px;
    position: relative;
    z-index: 10;
}

.ocn-auth-tab {
    flex: 1;
    padding: 16px 24px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-bottom: 0;
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.ocn-auth-tab:first-child {
    border-radius: 12px 0 0 0;
    border-right: 0;
}

.ocn-auth-tab:last-child {
    border-radius: 0 12px 0 0;
}

.ocn-auth-tab.active {
    background: #fff;
    color: #2c3e50;
    position: relative;
}

.ocn-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

/* Form Wrapper */
.ocn-auth-forms {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ocn-auth-form-wrapper {
    display: none;
}

.ocn-auth-form-wrapper.active {
    display: block;
}

/* When tabs are present, adjust border radius */
.ocn-auth-tabs + .ocn-auth-forms {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Form Styles */
.ocn-auth-form {
    padding: 40px;
        padding-right: 70px;
}

.ocn-auth-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
}

.ocn-auth-subtitle {
    margin: 0 0 32px 0;
    font-size: 16px;
    color: #6c757d;
    text-align: center;
}

/* Form Groups */
.ocn-form-group {
    margin-bottom: 20px;
}

.ocn-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.ocn-form-row .ocn-form-group {
    flex: 1;
}

.ocn-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.ocn-optional {
    color: #6c757d;
    font-weight: 400;
    font-size: 13px;
}

/* Form Controls */
.ocn-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ocn-form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ocn-form-control::placeholder {
    color: #adb5bd;
}

.ocn-form-hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6c757d;
}

/* Checkbox */
.ocn-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.ocn-checkbox input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
}

/* Buttons */
.ocn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
    position: relative;
}

.ocn-btn-primary {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
}

.ocn-btn-primary:hover:not(:disabled) {
    background-color: #2980b9;
    border-color: #2980b9;
}

.ocn-btn-secondary {
    color: #495057;
    background-color: #fff;
    border-color: #ced4da;
}

.ocn-btn-secondary:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.ocn-btn-block {
    display: flex;
    width: 100%;
}

.ocn-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Loading State */
.ocn-btn-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    border-radius: inherit;
}

.ocn-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.ocn-spinner circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 75;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 75;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -75;
    }
}

/* Divider */
.ocn-auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.ocn-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.ocn-auth-divider span {
    position: relative;
    padding: 0 16px;
    background: #fff;
    color: #6c757d;
    font-size: 14px;
}

/* Social Buttons */
.ocn-social-buttons {
    display: flex;
    gap: 12px;
}

.ocn-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.ocn-social-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #ced4da;
}

.ocn-social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ocn-social-btn svg {
    flex-shrink: 0;
}

/* Links */
.ocn-link {
    color: #3498db;
    text-decoration: none;
}

.ocn-link:hover {
    text-decoration: underline;
}

/* Messages */
.ocn-auth-messages {
    margin-bottom: 20px;
}

.ocn-auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.ocn-auth-message.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.ocn-auth-message.error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Footer */
.ocn-form-footer {
    margin-top: 24px;
    text-align: center;
}

/* Already Logged In Message */
.ocn-auth-message {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px;
    text-align: center;
}

.ocn-auth-message p {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #495057;
}

.ocn-auth-message .ocn-btn {
    margin: 0 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .ocn-auth-form {
        
        padding: 24px;
                padding-right: 55px;

    }
    
    .ocn-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ocn-social-buttons {
        flex-direction: column;
    }
    
    .ocn-auth-message .ocn-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}

/* Elementor Compatibility */
.elementor-widget-container .ocn-auth-container {
    margin: 0;
}