.authyo-otp-auth-container {
    /* max-width: 400px; */
    margin: 2rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* box-sizing: border-box; */
}

.authyo-otp-auth-form h2 {
    margin: 0 0 1.5rem;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
}

/* Registration specific styles */
.authyo-otp-auth-form.register {
    max-width: 450px;  /* Slightly wider for registration form */
}

.authyo-otp-auth-form .register-benefits {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.authyo-otp-auth-form .register-benefits ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.authyo-otp-auth-form .register-benefits li {
    position: relative;
    padding: 8px 0;
    color: #4b5563;
    font-size: 14px;
}

.authyo-otp-auth-form .register-benefits li:before {
    content: "✓";
    position: absolute;
    left: -20px;
    color: #16a34a;
    font-weight: bold;
}

/* Forgot password specific styles */
.authyo-otp-auth-form.forgot-password {
    max-width: 380px;  /* Slightly narrower for forgot password */
}

.authyo-otp-auth-form .reset-instructions {
    text-align: center;
    margin: -20px 0 30px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

/* Form group spacing */
.authyo-otp-auth-form .form-group {
    margin-bottom: 1.5rem;
}

/* Password requirements list */
.authyo-otp-auth-form .password-requirements {
    margin-top: 12px;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.authyo-otp-auth-form .password-requirements h4 {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.authyo-otp-auth-form .password-requirements ul {
    margin: 0;
    padding-left: 18px;
    list-style-type: none;
}

.authyo-otp-auth-form .password-requirements li {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 4px;
    position: relative;
}

.authyo-otp-auth-form .password-requirements li:before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #9ca3af;
}

.authyo-otp-auth-form .password-requirements li.met {
    color: #16a34a;
}

.authyo-otp-auth-form .password-requirements li.met:before {
    content: "✓";
    color: #16a34a;
}

/* Back to login link */
.authyo-otp-auth-form .back-to-login {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.authyo-otp-auth-form .back-to-login a {
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
}

.authyo-otp-auth-form .back-to-login a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.authyo-otp-auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
}

.authyo-otp-auth-form .required {
    color: #e74c3c;
    margin-left: 3px;
}

.authyo-otp-auth-form input[type="email"],
.authyo-otp-auth-form input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2937;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.authyo-otp-auth-form input[type="email"]:focus,
.authyo-otp-auth-form input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.authyo-otp-auth-form .button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #3b82f6;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.authyo-otp-auth-form .button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.authyo-otp-auth-form .button:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
    transform: none;
}

/* OTP field and button styling */
.authyo-otp-auth-form .otp-field-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.authyo-otp-auth-form input[name="otp"],
.authyo-otp-auth-form input[id^="reg_otp"],
.authyo-otp-auth-form input[id="forgot_otp"] {
    flex: 1;
}

.authyo-otp-auth-form #send-otp,
.authyo-otp-auth-form #send-reg-otp,
.authyo-otp-auth-form #send-forgot-otp {
    min-width: 120px;
    padding: 14px 20px;
    margin-top: 30px;
    background: #3b82f6;
    white-space: nowrap;
}

.authyo-otp-auth-form #send-otp:hover,
.authyo-otp-auth-form #send-reg-otp:hover,
.authyo-otp-auth-form #send-forgot-otp:hover {
    background: #2563eb;
}

/* Checkbox styling */
.authyo-otp-auth-form .woocommerce-form__label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 20px 0;
    font-size: 15px;
    color: #4b5563;
}

.authyo-otp-auth-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    top: -1px;
}

/* Links styling */
.authyo-otp-auth-form a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.authyo-otp-auth-form a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Message styling */
.authyo-otp-auth-form .message {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.authyo-otp-auth-form .message.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.authyo-otp-auth-form .message.success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Responsive design */
@media (max-width: 480px) {
    .authyo-otp-auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .authyo-otp-auth-form .otp-field-container {
        flex-direction: column;
        gap: 10px;
    }

    .authyo-otp-auth-form #send-otp,
    .authyo-otp-auth-form #send-reg-otp,
    .authyo-otp-auth-form #send-forgot-otp {
        width: 100%;
    }

    .authyo-otp-auth-form .otp-input input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    .authyo-otp-auth-form input[type="text"],
    .authyo-otp-auth-form input[type="email"] {
        width: 100%;
    }
}

/* Additional form elements */
.authyo-otp-auth-form .form-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.authyo-otp-auth-form .form-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e1e1e1;
}

.authyo-otp-auth-form .form-divider::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e1e1e1;
}

.authyo-otp-auth-form .form-divider span {
    background: #ffffff;
    padding: 0 10px;
    color: #666666;
    font-size: 14px;
}

/* Password strength indicator */
.authyo-otp-auth-form .password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.authyo-otp-auth-form .password-strength-meter {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.authyo-otp-auth-form .password-strength.weak .password-strength-meter {
    width: 25%;
    background: #dc3545;
}

.authyo-otp-auth-form .password-strength.medium .password-strength-meter {
    width: 50%;
    background: #ffc107;
}

.authyo-otp-auth-form .password-strength.strong .password-strength-meter {
    width: 75%;
    background: #28a745;
}

.authyo-otp-auth-form .password-strength.very-strong .password-strength-meter {
    width: 100%;
    background: #007bff;
}

/* OTP Input */
.authyo-otp-auth-form .otp-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.authyo-otp-auth-form .otp-input input {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.authyo-otp-auth-form .otp-input input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Form Sections */
.authyo-otp-auth-form .password-fields,
.authyo-otp-auth-form .otp-fields {
    transition: all 0.3s ease;
}

.authyo-otp-auth-form .otp-fields {
    margin-top: 1rem;
}

/* Links */
.authyo-otp-auth-form .form-links {
    margin-top: 1rem;
    text-align: center;
}

.authyo-otp-auth-form .form-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.authyo-otp-auth-form .form-links a:hover {
    text-decoration: underline;
}

/* Remember Me */
.authyo-otp-auth-form .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.authyo-otp-auth-form .remember-me input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Loading State */
.authyo-otp-auth-form .loading {
    position: relative;
}

.authyo-otp-auth-form .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.authyo-otp-register-form .form-row {
    margin-bottom: 1.5rem;
}

.authyo-otp-register-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
}

.authyo-otp-register-form input[type="email"],
.authyo-otp-register-form input[type="text"],
.authyo-otp-register-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2937;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.authyo-otp-register-form input[type="email"]:focus,
.authyo-otp-register-form input[type="text"]:focus,
.authyo-otp-register-form input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.authyo-otp-register-form .button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #3b82f6;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.authyo-otp-register-form .button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.authyo-otp-register-form .button:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
    transform: none;
}

.authyo-otp-auth-message {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.authyo-otp-auth-message.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.authyo-otp-auth-message.success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.authyo-otp-register-form .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.authyo-otp-register-form .required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Hidden utility class */
.authyo-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
} 