/* Novoshop Login System Styles */

.novoshop-login-wrapper,
.novoshop-ajax-form-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 35px 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: visible;
}

.novoshop_login_form {
    width: 100%;
    box-sizing: border-box;
}

.novoshop_login_form .row {
    margin: 0;
    width: 100%;
}

.novoshop_login_form .col-12 {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.novoshop_login_form .form-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.novoshop_login_form .form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    z-index: 1;
}

.novoshop_login_form .form-control {
    width: 100%;
    height: 50px;
    padding: 12px 45px 12px 15px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    direction: ltr;
    text-align: right;
}

.novoshop_login_form .form-control:focus {
    outline: none;
    border-color: var(--primary-color, #e4b15d);
    box-shadow: 0 0 0 3px rgba(228, 177, 93, 0.1);
}

.novoshop_login_form .btn {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
}

.novoshop_login_form .btn-success {
    background: var(--primary-color, #e4b15d);
    color: #ffffff;
}

.novoshop_login_form .btn-success:hover {
    background: var(--primary-color-hover, #d1a04e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(228, 177, 93, 0.3);
}

.novoshop_login_form .btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color, #e4b15d);
    color: var(--primary-color, #e4b15d);
}

.novoshop_login_form .btn-outline-primary:hover:not(.disabled) {
    background: var(--primary-color, #e4b15d);
    color: #ffffff;
}

.novoshop_login_form .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.novoshop_login_form .btn-icon {
    font-size: 18px;
}

.novoshop_login_form .fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* OTP Input Styles */
.novoshop-otp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 0;
    direction: ltr;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.novoshop-otp-input {
    width: 52px !important;
    height: 55px !important;
    min-width: 52px;
    max-width: 52px;
    flex: 0 0 52px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    direction: ltr;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    line-height: 55px;
}

.novoshop-otp-input::-webkit-outer-spin-button,
.novoshop-otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.novoshop-otp-input:focus {
    outline: none;
    border-color: var(--primary-color, #e4b15d);
    box-shadow: 0 0 0 3px rgba(228, 177, 93, 0.1);
    transform: scale(1.02);
    z-index: 10;
    position: relative;
}

.novoshop-otp-input.is-valid {
    border-color: #28a745;
    background-color: #f0f9f0;
}

.novoshop-otp-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
    animation: shake 0.3s;
}

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

/* Status Messages */
.novoshop_login_form .status {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.novoshop_login_form .status.woocommerce-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.novoshop_login_form .status.woocommerce-message {
    background: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.novoshop_login_form .status.woocommerce-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Timer Display */
#novoshop-code-timer {
    font-weight: 600;
    margin-left: 5px;
    display: inline-block;
}

#novoshop-resend-code-btn {
    margin-top: 15px;
    position: relative;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 15px;
    height: 48px;
}

#novoshop-resend-code-btn .fa-sync {
    display: inline-block;
    margin-left: 5px;
}

#novoshop-resend-code-btn .fa-spinner-third {
    display: inline-block;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 576px) {
    .novoshop-login-wrapper,
    .novoshop-ajax-form-wrapper {
        padding: 30px 20px;
        margin: 20px auto;
        max-width: calc(100% - 40px);
    }
    
    .novoshop-otp-input {
        width: 45px !important;
        height: 50px !important;
        min-width: 45px;
        max-width: 45px;
        flex: 0 0 45px;
        font-size: 22px;
        line-height: 50px;
    }
    
    .novoshop-otp-container {
        gap: 8px;
    }
    
    .novoshop_login_form .btn {
        font-size: 15px;
        height: 48px;
    }
    
    #novoshop-resend-code-btn {
        font-size: 14px;
        height: 46px;
    }
}

@media (max-width: 400px) {
    .novoshop-login-wrapper,
    .novoshop-ajax-form-wrapper {
        padding: 25px 18px;
        margin: 15px auto;
        max-width: calc(100% - 30px);
    }
    
    .novoshop-otp-input {
        width: 42px !important;
        height: 48px !important;
        min-width: 42px;
        max-width: 42px;
        flex: 0 0 42px;
        font-size: 20px;
        line-height: 48px;
    }
    
    .novoshop-otp-container {
        gap: 6px;
    }
}

@media (max-width: 360px) {
    .novoshop-login-wrapper,
    .novoshop-ajax-form-wrapper {
        padding: 20px 15px;
        margin: 10px auto;
        max-width: calc(100% - 20px);
    }
    
    .novoshop-otp-input {
        width: 40px !important;
        height: 46px !important;
        min-width: 40px;
        max-width: 40px;
        flex: 0 0 40px;
        font-size: 18px;
        line-height: 46px;
    }
    
    .novoshop-otp-container {
        gap: 5px;
    }
}

/* Hide/Show Forms */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

/* Mobile Number Input Direction */
.novoshop-mobile-number {
    direction: ltr;
    text-align: left;
}

